Decepti0n
Members-
Posts
731 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Decepti0n
-
Re: Illegal codes been sold Yay! Piczo! edit: ok, way to make yourselves look like complete retards in the shoutbox (except seany). Don't even try and pretend you can take piczo down... geez. Better not insult you or anything or you'll report me to the 'directors of the net' Dunno who that is, but err, it kinda speaks for itself Don't try and fake yourself if you can't even talk right or spell correctly Besides, piczo is almost the shittest free web site host around
-
Re: FOUND A ILLEGAL DISTRIBUTER I ditched MSN for Gtalk :p still use it for some people, but otherwise I get what i want - to talk to someone - from Gtalk, without all the extra crap
-
Re: FOUND A ILLEGAL DISTRIBUTER Damnnnnnnnnnn that MSN's oooooooooooold
-
!!! Many ideas for Mc 2.0 but I cant program !!!
Decepti0n replied to MDK666's topic in General Discussion
Re: !!! Many ideas for Mc 2.0 but I cant program !!! Horadric Cube woohoo -
Re: Text Boxes and Apostrophes echo '<td>Desc:</td><td><input type="text" size="20" name="mdesc" maxlength="250" value="'.$msn['DESC'].'"></td>';
-
Re: WTF It was the entire game when i logged in :p Say, whats the info from the users table for ID 16, and what is it for something higher than 18, might be able to spot something
-
Re: WTF What's in your users table for <17, and 18>
-
Re: WTF I signed up and i have errors all over, and no userid Name: gooey [] Money: $100 Level: 1 Crystals: 0 So, i'd say you changed something in the one of the user tables, and now when registering it wont insert properly
-
Re: WTF 1) they dont have any referrals at a guess, or there was an error 2) they dont have any friends 3) they dont have any enemies I'd say, try adding a friend or so to see if it helps any
-
Re: [mccode] Send Crystals No, $hot! Your other account, remember?
-
Re: Making A template You need to know it if you wanna be any good at anything, since its the basis of a web page. And i dont know why people keep saying 'dont do this or they can just hack you', can you hack meeeee?
-
Re: Making A template You can use includes in php, but not in just html For that template i'd put the entire top and left in the header file, and call it on every page (would have to be with php though)
-
Re: Making A template Yahuh You'll end up with a better page than if you just used photoshop's save for web function (it outputs messily)
-
Thought I might test something, saves a lot of server power especially on high-jail count games. Can be applied to other things (re: should be) This is totally untested and mostly off the top of my head, so name it fedjail56.php or something first. I'd be glad if someone helped debug it Quick Instructions: 1. Add in your game things at the top of the page 2. Save it as some file name 3. Go to it 4. Check to see if it cached, you can either go via Cpanel's file manager, FTP, or pretty much just browse to it (yourgame.com/cache/fedjail.cache) You'll have to add in all the stuff at the top yourself though <?php // Whatever the normal page headers are if (!is_dir('cache')) { @mkdir('cache', 0777); fopen('cache/index.html', 'w'); } if (!file_exists('cache/fedjail.cache') || filemtime('cache/fedjail.cache') < strtotime('-1 hour')) { // Get and cache $fedjail = array('fedjail', 'mailban'); $fed_q = mysql_query("SELECT f.*,u.username,u2.username as jailer FROM fedjail f LEFT JOIN users u ON f.fed_userid=u.userid LEFT JOIN users u2 ON f.fed_jailedby=u2.userid ORDER BY f.fed_days ASC"); $mailq = mysql_query("SELECT * FROM users WHERE mailban>0 ORDER BY mailban ASC"); while ($r = mysql_fetch_assoc($fed_q)) { $fedjail['fedjail'] .= '[url="viewuser.php?u='.$r['fed_userid'].'"]'.$r['username'].'[/url] '.$r['fed_days'].' '.$r['fed_reason'].'[url="viewuser.php?u='.$r['fed_jailedby'].'"]'.$r['jailer'].'[/url]'; } while ($r = mysql_fetch_assoc($mailq)) { $fedjail['mailban'] .= '[url="viewuser.php?u='.$r['userid'].'"]'.$r['username'].'[/url] '.$r['mailban'].' '.$r['mb_reason'].''; } $o = fopen('cache/fedjail.cache', 'w'); fwrite($o, serialize($fedjail)); fclose($o); } $retrieve = unserialize(file_get_contents('cache/fedjail.cache')); print "[b]Federal Jail[/b] If you ever cheat the game your name will become a permanent part of this list... </pre> <table border="1">WhoDaysReasonJailer</table>";<br>print "[b]Mail Bann[/b]<br><br>If you ever swear or do bad things at your mail, your name will become a permanent part of this list...<br><br><table width="100%" border="1">WhoDaysReason</table>";<br><br>$h->endpage();<br Nice reminder that it's totally untested, so don't yell at me if you destroy your game (which you wont be able to with this)
-
Re: [LITE][FREE] Job mysql_query("UPDATE users u WHERE job > 0".mysql_error()); thats a bug since it doesn't even make sense
-
How To Do V1 Crons ( Hope This Will Help )
Decepti0n replied to SoulOfDeath's topic in General Discussion
Re: How To Do V1 Crons ( Hope This Will Help ) I usually have like one or two max, so, it doesn't really bother me -
How To Do V1 Crons ( Hope This Will Help )
Decepti0n replied to SoulOfDeath's topic in General Discussion
Re: How To Do V1 Crons ( Hope This Will Help ) Yeesh, am i the only one who uses the beginner cron page? lol -
Re: Making A template You can usually adapt to any browser size by using percentages for widths, and links are just the <a> tag I learned html from w3schools.com, take the xhtml lessons thing
-
Re: Causes of Looping? nope
-
Re: [TGM] Custom Hospital Message [TGM] [code] $phrase = 'hello this contains a zero'; $look[0] = 'zero'; $look[1] = 'one'; $look[2] = 'two'; $look[3] = 'three'; $i = 0; while($i < 3){ if ($phrase = $look[$i]){ echo 'The phrase contains a number.'; exit; } } Now deathstar, i though you said you knew php well? Lets see, - That would loop endlessly since $i doesn't increment - A foreach loop would be far better - $phrase = $look[$i] would always equal true since it's an assignment not comparison - That wouldn't check the last word since you're doing less than 3 - You'd have to use stripos or something similar to check against the string - It'd be cleaner to write all the words in a string, then explode it into an array[/code]
-
How do I use a [code][/code] type function on a normal page?
Decepti0n replied to Arson's topic in Other Programming
Re: How do I use a type function on a normal page? We already established that, but typing </textarea> would end it -
How do I use a [code][/code] type function on a normal page?
Decepti0n replied to Arson's topic in Other Programming
Re: How do I use a type function on a normal page? I'd like to know where you came up with using textarea in an echo or print statement, which is PROBABLY WHAT HAPPENS ANYWAY, it doesn't mean it doesn't get parsed, besides i answered it on the first page with <pre> tags -
Re: code not optimized? How is that optimizing? Im betting you could run those games of yours on a shared server if you knew where to start cutting down on your resource hogging Just because you have a dedicated server doesn't mean you're better, or your game is better, or you even need it
-
Re: [TGM] Custom Hospital Message [TGM] kraig has a point, i doubt there's anything to stop filling the messages with racist/sexist things
-
Re: code not optimized? Could always not have those ten thousand crons running all the time that load the entire database