
DELETE ME NOW!
Members-
Posts
346 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by DELETE ME NOW!
-
Re: My jailescape Ok i cleaned this script [b]Note[/b] Not tested at all!.! [php]<?php include('globals.php'); echo '<font color="#FFFFFF"><hr width="70%"><h3>Jail</h3></font><hr width="70%"/> '; if ($ir['brave'] < 7) { echo '<font color="#FFFFFF">It costs seven brave to try to escape. Come back later. <hr width="70%">[url="#"]Back[/url] <hr width="70%"></font>'; $h->endpage(); exit; } if(!$ir['userid']) { echo '<font color="#FFFFFF">Invalid user. <hr width="70%">[url="#"]Back[/url] <hr width="70%"></font>'; $h->endpage(); exit; } if(!$ir['jail']) { echo '<font color="#FFFFFF">You are not in jail! <hr width="70%">[url="#"]Back[/url] <hr width="70%"></font>'; $h->endpage(); exit; } if(rand(1,100) <= (rand(1,100) + (($ir['jail'] / $ir['crimexp']) + 5))) { echo '<font color="#FFFFFF">You successfully escaped from jail. '; $db->query("UPDATE `users` SET `crimexp` = `crimexp` + '". ($ir['jail'] / 10) ."', `brave` = `brave` - '7', `jail` = '0' WHERE (`userid` = '{$userid}')") or die(mysql_error()); } else { echo '<font color="#FFFFFF">While trying to escape from jail, a guard spots you. Looks like you are going to be here even longer than we thought! '; $db->query("UPDATE `users` SET `jail` = `jail` + '". rand(30, 100) ."' WHERE (`userid` = '{$userid}')") or die(mysql_error()); } echo '<hr width="70%">[url="#"]Back[/url] <hr width="70%">'; $h->endpage(); ?> Like i said dont forget i havent tested this... Same script just made it cleaner lol
-
Re: [mccode v2] Donator's Bank lol missed a $ Global $db, $ir, $c, $userid, $h; There
-
Re: My jailescape Even better.. $db->query("UPDATE users SET crimexp=crimexp+{$gain} WHERE userid=$userid"); $db->query("UPDATE users SET brave=brave-7 WHERE userid=$userid"); $db->query("UPDATE users SET jail=0 WHERE userid=$userid"); Change to. $db->query("UPDATE `users` SET `crimexp` = `crimexp` + '{$gain}', `brave` = `brave` - '7', `jail` = '0' WHERE (`userid` = '{$userid}')") or die(mysql_error()); 3 mySQL Querys into one :)
-
Re: Need help with simple sql please You shut up dont tell me to. wtf there not codes there code tags ... everyone knows how to use em.
-
Re: Need help with simple sql please OMFG, firecamp use CODE tags, to many people have allready said in diffrent topic's use damn code tags? dont know how to use? Its simple.. [code ] Some code here done! but without no spaces at the ends like i have done! [/code ]
-
Re: [mccode v2]My Simple Search Streets Here i updated the code for you xD smaller code also lol <?php include('globals.php'); $rand = rand(0,3); $randmoney= rand(1,100); if(!$ir['turns']) { echo 'Sorry, you have no turns left today. [url="streets.php"]Go Back[/url]'; $h->endpage(); exit; } if ($rand == 1) { $db->query("UPDATE `users` SET `money` = `money` + '{$randmoney}', `turns` = `turns` - '1' WHERE (`userid` = '{$userid}')") or die(mysql_error()); echo 'While searching the streets you have come across $'. number_format($randmoney) .'. [url="streets.php"]Go Back[/url]'; } else if ($rand == 2) { $db->query("UPDATE `users` SET `turns` = `turns` - '1' WHERE (`userid` = '{$userid}')") or die(mysql_error()); $itemID = ITEM ID HERE; $itemQY = QTY OF ITEM HERE; item_add($userid, $itemID, $itemQY); echo 'While searching the streets you have come across ITEM NAME. [url="streets.php"]Go Back[/url]'; } else { $db->query("UPDATE `users` SET `turns` = `turns` - '1' WHERE (`userid` = '{$userid}')") or die(mysql_error()); echo 'While searching the streets you did not come across anything. [url="streets.php"]Go Back[/url]'; } $h->endpage(); ?> There!
-
Adding another type of crystals in to a game...
DELETE ME NOW! replied to Strats's topic in General Discussion
Re: Adding another type of crystals in to a game... If you want them to gain cards 1) ALTER TABLE `users` ADD `cards` INT(11) NOT NULL DEFAULT '0' <<<< Only for color xD 2) If in header add echo '[b]Cards[/b]: '. number_format($ir['cards']); 3) You will have to edit that script, you posted. 4) Then do something like mysql_query("UPDATE `users` SET `cards` = `cards` + 'Amount here' WHERE (`userid` = '{$userid}')") or die(mysql_error()); 5) Then you will have to edit few of other files, to select so you can give out cards also.. 6) Hope that makes sence^ lol -
Re: Questions about languages. Another one for you xD 1: 45 2: UK 3: English, Spanish, English, French, Italian, German 4: Same ^ lol
-
Re: Is this bad? v2 i guess everyone uses it. hm.. You will have to go into the database (Phpmyadmin) go to settings table click insert and add them back in.
-
Re: [Review] Criminal-wars - please review Wtf dude, you call this a game? rofl
-
Re: Questions about languages. 1) = 19 2) US 3) French 4) French (lol!)
-
Re: Questions about languages. I know ive posted ill just make one up lol. 1) 21 4) US 3) English, Spanish. 4) English home language, Spanish learned myself. There lol....
-
[mccode] Advanced Merit System [$10.00]
DELETE ME NOW! replied to Zero-Affect's topic in Paid Modifications
Re: [mccode] Advanced Merit System [$10.00] Lol @ "only" :roll: LMAO -
[Mccodes V2] In-game template (first come, first serve)
DELETE ME NOW! replied to Joel's topic in Paid Modifications
Re: [Mccodes V2] In-game template (first come, first serve) Joel template is to nice!!! $60 = nice price ;) -
Re: Logged out users don't cron. LMAO (sorry i had to laugh)..... Hmm could be cron maybe when people are loggedin it only updates them? maybe?
-
Re: [MCCODES v2] Trivia Quiz Creator In correct order? What you mean? use a order thing like i did :Xd: Lmao @ old age
-
Re: [MCCODES v2] Trivia Quiz Creator You could use some javascript to tell them there time while doing there questions ;)
-
Re: Counting (nr game) +1301
-
Re: [REVIEW] New TopSite King Yeah template looks kind of nice
-
[mccode v2] Brothel Non exploitable
DELETE ME NOW! replied to Haunted Dawg's topic in Free Modifications
Re: [mccode v2] Brothel Non exploitable Because Eternals doesn't check to see if you have the right amount of money, thats why it will take ur money into minus also. -
Re: Questions about languages. 1): 16 (almost 17) 2): UK 3): English, French 4): English home language, little bit of French from school (I know im dumb lol.)
-
Re: Eregi - Ereg Ahh ok thanks for the info Floydian :)
-
Re: Count Backwards :D -999,999 //wont take for ever ;)
-
Re: 3 Word Game he cums all
-
I didnt know where to post this, so i posted it in here. Someone said to me ereg / eregi is going to be took out of php? is this true? also said its very bad to use.