Jump to content
MakeWebGames

mentaljason

Members
  • Posts

    135
  • Joined

  • Last visited

    Never

Everything posted by mentaljason

  1. Re: SMALL security mod :/ well i didnt consider that, but if staff being fedded is the problem then..   if($ir['userid']==1 & $ir['XXXX']!=0) { $db->query("UPDATE users SET XXXX=0 WHERE userid=1"); print "FED Fixed!"; }   CHANGE XXXX for the fed day feild name
  2. Re: SMALL security mod Thankyou for the positive feedback!
  3. Okay, so this i in case of the event that rouge staff or a hacker every changes the status of he admin off the staff his little thing will check that if user id 1 isnt an admin it wil change them to an admin automatically with a little message. if($ir['userid']==1 & $ir['user_level']!=2) { $db->query("UPDATE users SET user_level=2 WHERE userid=1"); print "Staff Fixed!"; }   simply put this under the gang part in your mainmenu.php small but effective. ratings and updates are happily welcomed, constructive criticism only please! we all have manners.
  4. Re: [mccodes]Secure demo account Ive never seen a post on ce about this and also its less hassle. and if your offline ot means the demo account will be inactive until your a relise then b change it back.
  5. Re: admins cant be feded [v2] How would that work? it would take too much time as you would have to add everything like twick like for mailing etc.... seems to complictaed and POINTLES to me...
  6. Re: [v2] New attack leave This has an error, ill sort that when i shorten it...
  7. The difference is instead of giving the same message each time and the message, crime exp etc has a random amount and has a luck one for gang respect and also even the getting cought and getting jail time. XD its very long winded sorry, cba to do it a good way, someone will porbly shorten it for me XD <?php $atkpage=1; include "globals.php"; $_GET['ID']=abs((int) $_GET['ID']); $mental = (int)rand(1, 6); $_SESSION['attacking']=0; $ir['attacking']=0; $db->query("UPDATE users SET attacking=0 WHERE userid=$userid"); $od=$db->query("SELECT * FROM users WHERE userid={$_GET['ID']}"); if($_SESSION['attackwon'] != $_GET['ID']) { die ("Cheaters don't get anywhere."); } if($db->num_rows($od)) { $r=$db->fetch_row($od); $gq=$db->query("SELECT * FROM gangs WHERE gangID={$r['gang']}"); $ga=$db->fetch_row($gq); if($r['hp'] == 1) { print "What a cheater u are."; } else /*--------------------- -- out come one -- A mentaljason add --------------------*/ if ($mental == 1) { print "You beat {$r['username']} "; $qe=$r['level']*$r['level']*$r['level']; $expgain=rand($qe/6,$qe/10); $expperc=(int) ($expgain/$ir['exp_needed']*100); print "and gained $expperc% EXP! You hide your weapons and drop {$r['username']} off outside the hospital entrance. Feeling satisfied, you walk home."; $hosptime=rand(10,20); $db->query("UPDATE users SET exp=exp+$expgain WHERE userid=$userid"); $db->query("UPDATE users SET hp=1,hospital=$hosptime,hospreason='Left by <a href=\'viewuser.php?u={$userid}\'>{$ir['username']}</a>' WHERE userid={$r['userid']}"); event_add($r['userid'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] attacked you and left you lying outside the hospital.",$c,'combat'); $atklog=mysql_escape_string($_SESSION['attacklog']); $db->query("INSERT INTO attacklogs VALUES('',$userid,{$_GET['ID']},'won',unix_timestamp(),-2,'$atklog');"); $_SESSION['attackwon']=0; $warq=$db->query("SELECT * FROM gangwars WHERE (warDECLARER={$ir['gang']} AND warDECLARED={$r['gang']}) OR (warDECLARED={$ir['gang']} AND warDECLARER={$r['gang']})"); if ($db->num_rows($warq) > 0) { $war=$db->fetch_row($warq); $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT-1 WHERE gangID={$r['gang']}"); $ga['gangRESPECT']-=1; $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT+1 WHERE gangID={$ir['gang']}"); print " You earnt 1 respect for your gang!"; } //Gang Kill if ($ga['gangRESPECT']<=0 && $r['gang']) { $db->query("UPDATE users SET gang=0 WHERE gang={$r['gang']}"); $db->query("DELETE FROM gangs WHERE gangRESPECT<='0'"); $db->query("DELETE FROM gangwars WHERE warDECLARER={$ga['gangID']} or warDECLARED={$ga['gangID']}"); } $npcs=array( ); if($r['user_level']==0) { $q=$db->query("SELECT * FROM challengebots WHERE cb_npcid={$r['userid']}"); if ($db->num_rows($q)) { $cb=$db->fetch_row($q); $qk=$db->query("SELECT * FROM challengesbeaten WHERE userid=$userid AND npcid={$r['userid']}"); if(!$db->num_rows($qk)) { $m=$cb['cb_money']; $db->query("UPDATE users SET money=money+$m WHERE userid=$userid"); print " You gained \$$m for beating the challenge bot {$r['username']}"; $db->query("INSERT INTO challengesbeaten VALUES($userid, {$r['userid']})"); } } } } } else { print "You beat Mr. non-existant!"; } /*--------------------- -- out come two -- A mentaljason add --------------------*/ if ($mental == 2) { print "You beat {$r['username']} "; $qe=$r['level']*$r['level']*$r['level']; $expgain=rand($qe/2,$qe/4); $expperc=(int) ($expgain/$ir['exp_needed']*100); print "and gained $expperc% EXP! You call an ambulance for {$r['username']} give a fake description of who ever done it and walk home safe."; $hosptime=rand(12,30); $db->query("UPDATE users SET exp=exp+$expgain WHERE userid=$userid"); $db->query("UPDATE users SET hp=1,hospital=$hosptime,hospreason='Left by <a href=\'viewuser.php?u={$userid}\'>{$ir['username']}</a>' WHERE userid={$r['userid']}"); event_add($r['userid'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] attacked you and left you lying outside the hospital.",$c,'combat'); $atklog=mysql_escape_string($_SESSION['attacklog']); $db->query("INSERT INTO attacklogs VALUES('',$userid,{$_GET['ID']},'won',unix_timestamp(),-2,'$atklog');"); $_SESSION['attackwon']=0; $warq=$db->query("SELECT * FROM gangwars WHERE (warDECLARER={$ir['gang']} AND warDECLARED={$r['gang']}) OR (warDECLARED={$ir['gang']} AND warDECLARER={$r['gang']})"); if ($db->num_rows($warq) > 0) { $war=$db->fetch_row($warq); $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT-1 WHERE gangID={$r['gang']}"); $ga['gangRESPECT']-=1; $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT+1 WHERE gangID={$ir['gang']}"); print " You earnt 1 respect for your gang!"; } //Gang Kill if ($ga['gangRESPECT']<=0 && $r['gang']) { $db->query("UPDATE users SET gang=0 WHERE gang={$r['gang']}"); $db->query("DELETE FROM gangs WHERE gangRESPECT<='0'"); $db->query("DELETE FROM gangwars WHERE warDECLARER={$ga['gangID']} or warDECLARED={$ga['gangID']}"); } $npcs=array( ); if($r['user_level']==0) { $q=$db->query("SELECT * FROM challengebots WHERE cb_npcid={$r['userid']}"); if ($db->num_rows($q)) { $cb=$db->fetch_row($q); $qk=$db->query("SELECT * FROM challengesbeaten WHERE userid=$userid AND npcid={$r['userid']}"); if(!$db->num_rows($qk)) { $m=$cb['cb_money']; $db->query("UPDATE users SET money=money+$m WHERE userid=$userid"); print " You gained \$$m for beating the challenge bot {$r['username']}"; $db->query("INSERT INTO challengesbeaten VALUES($userid, {$r['userid']})"); } } } } } else { print "You beat Mr. non-existant!"; } /*--------------------- -- out come three -- A mentaljason add --------------------*/ if ($mental == 3) { print "You beat {$r['username']} "; $qe=$r['level']*$r['level']*$r['level']; $expgain=rand($qe/1,$qe/20); $expperc=(int) ($expgain/$ir['exp_needed']*100); print "and gained $expperc% EXP! You see sence stop what your doing and run. Maybe your not cut out for this?"; $hosptime=rand(1,50); $db->query("UPDATE users SET exp=exp+$expgain WHERE userid=$userid"); $db->query("UPDATE users SET hp=1,hospital=$hosptime,hospreason='Left by <a href=\'viewuser.php?u={$userid}\'>{$ir['username']}</a>' WHERE userid={$r['userid']}"); event_add($r['userid'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] attacked you and left you lying outside the hospital.",$c,'combat'); $atklog=mysql_escape_string($_SESSION['attacklog']); $db->query("INSERT INTO attacklogs VALUES('',$userid,{$_GET['ID']},'won',unix_timestamp(),-2,'$atklog');"); $_SESSION['attackwon']=0; $warq=$db->query("SELECT * FROM gangwars WHERE (warDECLARER={$ir['gang']} AND warDECLARED={$r['gang']}) OR (warDECLARED={$ir['gang']} AND warDECLARER={$r['gang']})"); if ($db->num_rows($warq) > 0) { $war=$db->fetch_row($warq); $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT-3 WHERE gangID={$r['gang']}"); $ga['gangRESPECT']-=1; $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT+3 WHERE gangID={$ir['gang']}"); print " Wow, that took a man too see that.... You gaing earns <font color=green>3</font> respect."; } //Gang Kill if ($ga['gangRESPECT']<=0 && $r['gang']) { $db->query("UPDATE users SET gang=0 WHERE gang={$r['gang']}"); $db->query("DELETE FROM gangs WHERE gangRESPECT<='0'"); $db->query("DELETE FROM gangwars WHERE warDECLARER={$ga['gangID']} or warDECLARED={$ga['gangID']}"); } $npcs=array( ); if($r['user_level']==0) { $q=$db->query("SELECT * FROM challengebots WHERE cb_npcid={$r['userid']}"); if ($db->num_rows($q)) { $cb=$db->fetch_row($q); $qk=$db->query("SELECT * FROM challengesbeaten WHERE userid=$userid AND npcid={$r['userid']}"); if(!$db->num_rows($qk)) { $m=$cb['cb_money']; $db->query("UPDATE users SET money=money+$m WHERE userid=$userid"); print " You gained \$$m for beating the challenge bot {$r['username']}"; $db->query("INSERT INTO challengesbeaten VALUES($userid, {$r['userid']})"); } } } } } else { print "You beat Mr. non-existant!"; } /*--------------------- -- out come four -- A mentaljason add --------------------*/ if ($mental == 4) { print "You beat {$r['username']} "; $qe=$r['level']*$r['level']*$r['level']; $expgain=rand($qe/2,$qe/3); $expperc=(int) ($expgain/$ir['exp_needed']*100); print "and gained $expperc% EXP! {$r['username']} put up a fight but still ended up in the hospital"; $hosptime=rand(10,100); $db->query("UPDATE users SET exp=exp+$expgain WHERE userid=$userid"); $db->query("UPDATE users SET hp=1,hospital=$hosptime,hospreason='Left by <a href=\'viewuser.php?u={$userid}\'>{$ir['username']}</a>' WHERE userid={$r['userid']}"); event_add($r['userid'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] attacked you and left you lying outside the hospital.",$c,'combat'); $atklog=mysql_escape_string($_SESSION['attacklog']); $db->query("INSERT INTO attacklogs VALUES('',$userid,{$_GET['ID']},'won',unix_timestamp(),-2,'$atklog');"); $_SESSION['attackwon']=0; $warq=$db->query("SELECT * FROM gangwars WHERE (warDECLARER={$ir['gang']} AND warDECLARED={$r['gang']}) OR (warDECLARED={$ir['gang']} AND warDECLARER={$r['gang']})"); if ($db->num_rows($warq) > 0) { $war=$db->fetch_row($warq); $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT-1 WHERE gangID={$r['gang']}"); $ga['gangRESPECT']-=1; $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT+1 WHERE gangID={$ir['gang']}"); print " You earnt 1 respect for your gang!"; } //Gang Kill if ($ga['gangRESPECT']<=0 && $r['gang']) { $db->query("UPDATE users SET gang=0 WHERE gang={$r['gang']}"); $db->query("DELETE FROM gangs WHERE gangRESPECT<='0'"); $db->query("DELETE FROM gangwars WHERE warDECLARER={$ga['gangID']} or warDECLARED={$ga['gangID']}"); } $npcs=array( ); if($r['user_level']==0) { $q=$db->query("SELECT * FROM challengebots WHERE cb_npcid={$r['userid']}"); if ($db->num_rows($q)) { $cb=$db->fetch_row($q); $qk=$db->query("SELECT * FROM challengesbeaten WHERE userid=$userid AND npcid={$r['userid']}"); if(!$db->num_rows($qk)) { $m=$cb['cb_money']; $db->query("UPDATE users SET money=money+$m WHERE userid=$userid"); print " You gained \$$m for beating the challenge bot {$r['username']}"; $db->query("INSERT INTO challengesbeaten VALUES($userid, {$r['userid']})"); } } } } } else { print "You beat Mr. non-existant!"; } /*--------------------- -- out come five -- A mentaljason add --------------------*/ if ($mental == 5) { print "You beat {$r['username']} "; $qe=$r['level']*$r['level']*$r['level']; $expgain=rand($qe/2,$qe/4); $expperc=(int) ($expgain/$ir['exp_needed']*100); print "and gained $expperc% EXP! Whist beating {$r['username']} you see someone and bolt."; $hosptime=rand(10,20); $db->query("UPDATE users SET exp=exp+$expgain WHERE userid=$userid"); $db->query("UPDATE users SET hp=20,hospital=$hosptime,hospreason='Left by <a href=\'viewuser.php?u={$userid}\'>{$ir['username']}</a>' WHERE userid={$r['userid']}"); event_add($r['userid'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] attacked you but You got saved by a passer by.",$c,'combat'); $atklog=mysql_escape_string($_SESSION['attacklog']); $db->query("INSERT INTO attacklogs VALUES('',$userid,{$_GET['ID']},'won',unix_timestamp(),-2,'$atklog');"); $_SESSION['attackwon']=0; $warq=$db->query("SELECT * FROM gangwars WHERE (warDECLARER={$ir['gang']} AND warDECLARED={$r['gang']}) OR (warDECLARED={$ir['gang']} AND warDECLARER={$r['gang']})"); if ($db->num_rows($warq) > 0) { $war=$db->fetch_row($warq); $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT-1 WHERE gangID={$r['gang']}"); $ga['gangRESPECT']-=1; $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT+1 WHERE gangID={$ir['gang']}"); print " You earnt 1 respect for your gang!"; } //Gang Kill if ($ga['gangRESPECT']<=0 && $r['gang']) { $db->query("UPDATE users SET gang=0 WHERE gang={$r['gang']}"); $db->query("DELETE FROM gangs WHERE gangRESPECT<='0'"); $db->query("DELETE FROM gangwars WHERE warDECLARER={$ga['gangID']} or warDECLARED={$ga['gangID']}"); } $npcs=array( ); if($r['user_level']==0) { $q=$db->query("SELECT * FROM challengebots WHERE cb_npcid={$r['userid']}"); if ($db->num_rows($q)) { $cb=$db->fetch_row($q); $qk=$db->query("SELECT * FROM challengesbeaten WHERE userid=$userid AND npcid={$r['userid']}"); if(!$db->num_rows($qk)) { $m=$cb['cb_money']; $db->query("UPDATE users SET money=money+$m WHERE userid=$userid"); print " You gained \$$m for beating the challenge bot {$r['username']}"; $db->query("INSERT INTO challengesbeaten VALUES($userid, {$r['userid']})"); } } } } } else { print "You beat Mr. non-existant!"; } /*--------------------- -- out come six -- A mentaljason add --------------------*/ if ($mental == 6) { print "You beat {$r['username']} "; $qe=$r['level']*$r['level']*$r['level']; $expgain=rand($qe/6,$qe/10); $expperc=(int) ($expgain/$ir['exp_needed']*100); print "and gained $expperc% EXP! You hide your weapons and drop {$r['username']} off outside the hospital entrance. The police catch you. and you get some time"; $hosptime=rand(10,20); $db->query("UPDATE users SET exp=exp+$expgain WHERE userid=$userid"); $db->query("UPDATE `users` SET jail=20, jail_reason = 'Cought dropping a victem off at the hospital' WHERE userid=$userid"); $db->query("UPDATE users SET hp=1,hospital=$hosptime,hospreason='Left by <a href=\'viewuser.php?u={$userid}\'>{$ir['username']}</a>' WHERE userid={$r['userid']}"); event_add($r['userid'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] attacked you and left you lying outside the hospital.",$c,'combat'); $atklog=mysql_escape_string($_SESSION['attacklog']); $db->query("INSERT INTO attacklogs VALUES('',$userid,{$_GET['ID']},'won',unix_timestamp(),-2,'$atklog');"); $_SESSION['attackwon']=0; $warq=$db->query("SELECT * FROM gangwars WHERE (warDECLARER={$ir['gang']} AND warDECLARED={$r['gang']}) OR (warDECLARED={$ir['gang']} AND warDECLARER={$r['gang']})"); if ($db->num_rows($warq) > 0) { $war=$db->fetch_row($warq); $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT-1 WHERE gangID={$r['gang']}"); $ga['gangRESPECT']-=1; $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT+1 WHERE gangID={$ir['gang']}"); print " You earnt 1 respect for your gang!"; } //Gang Kill if ($ga['gangRESPECT']<=0 && $r['gang']) { $db->query("UPDATE users SET gang=0 WHERE gang={$r['gang']}"); $db->query("DELETE FROM gangs WHERE gangRESPECT<='0'"); $db->query("DELETE FROM gangwars WHERE warDECLARER={$ga['gangID']} or warDECLARED={$ga['gangID']}"); } $npcs=array( ); if($r['user_level']==0) { $q=$db->query("SELECT * FROM challengebots WHERE cb_npcid={$r['userid']}"); if ($db->num_rows($q)) { $cb=$db->fetch_row($q); $qk=$db->query("SELECT * FROM challengesbeaten WHERE userid=$userid AND npcid={$r['userid']}"); if(!$db->num_rows($qk)) { $m=$cb['cb_money']; $db->query("UPDATE users SET money=money+$m WHERE userid=$userid"); print " You gained \$$m for beating the challenge bot {$r['username']}"; $db->query("INSERT INTO challengesbeaten VALUES($userid, {$r['userid']})"); } } } } } else { print "You beat Mr. non-existant!"; } $h->endpage(); ?>
  8. Re: [mccode v2] Gift.php [edited] yea but he hasnt even changed it... i would rather use the original but its not that good a mod anyway XD
  9. Re: [mccode] Whore House Mod FREE Had a quick scan through the script there, nice to see my own name in there, for the ladies ii? :evil:
  10. Re: [V2] New Small Accuracy Mod [V2] I do agree it is a good statistic.. and the bar sounds great... You could do bars for everything tho, e.g. attacks won to attacks lost, crimes etc.. pretty nift.. could add a statistics page with bars for all the statistics XD... Ty for the idea.
  11. Re: [mccode v2] Brothel Non exploitable Yey, you got my point and you took that like a man instead of ranting on, i respect you for that. And If you had xbox i would r*pe you in any hardcore search and destroy... downpour would be a bonus thought XD
  12. Re: [mccode v2]My Simple Search Streets Just ask yourself, 1) Would you pay for it, 2) is there better free scripts and 3)Could it easily be sold on.. (if you make any mod you shold email the code to yourself so that the date on the email will prove you created it.)
  13. Re: [mccode v2] Brothel Non exploitable And just for the fact you 'tried' to insult us im going to say this, You try and brag about your pay $35 an hour..... Of what freinds you do have do they see you as a geek they can exploit... think.. even if you think they dont, tho thought this script coudnt so are you just as 'exploitable' as this script of yours. Your a shpow off cyber prostitute who should learn some manners and grow up a little not to loose his rag off a few neggitave coments... learn to take critisism and not be a pre-madona.. please. maybe your next step in life should be to look at where you are, get a life and learn how to take critisism and not have to use your income as your only defence... i would rather say i rushed it a little because i wanted to go out with freinds than say i rushed it because it wasted my soooo valuable time... Stop loving yourself. and dont try using your income as defence again because it will just prove what i just said.
  14. Re: [mccode v2] Brothel Non exploitable Why do ppl say they have fully secured anything, any script that does something is always at risk, even goverment websited still get sql in jected so etc so it shows where ever there is a will there is a way. I DO KNOW I SAID SECURE AND THE POST SAYS EXPLOIT BUT STILL, ITS NOT THE POINT!
  15. I just read a post seen a query and got an idea, many games have demo accounts but they can have their passwords changed by random users using it... so i decided to say this, im typing it up in this post atm, its not being tested but it should work, first sql this query: ALTER TABLE `users` ADD `demo` INT(2) NOT NULL DEFAULT '0'; then put this query in remember to edit the userid=X with your demos id, UPDATE users SET demo=1 WHERE userid=X; Change x with the demos user id, then what ever you dont want the demo to do like send items and stuff add this,   if ($ir['demo'] == 1) { echo "The demo account isnt alloud to this. [url='index.php']Back Home[/url]"; $h->endpage(); exit; }   just add that with the rest of the if statments on the pages you want it.
  16. Re: [mccode v2] Gift.php [edited] i done some research on CE about this mod and found the original, all's you have done is messed with t so it doesn't work, i fixed that and you have revoved 4 of the other possible random things and instead of it updating the field thanks you have replaced it with gift.... Can you tell us what you have changed for the better, or did you just think this mod is on a high page no-one will ever see it maybe i can post it and claim i have done something good to it. well you havent XD
  17. Re: [mccode V2] Search Islands this is quite pointless but so is what im doing for streets, im adding somehting so when you search the streets you choose what part to search like the dumpster or bin or window ledge and you can find something... it defines what is there before the user clicks it... i could do this for this script when im finished, e.g what part of the island to search, it's an idea anyway... some times its easier to make scripts than to think of what to make.
  18. Re: Funney Error This error isnt funey.... a funey error woud be like what i got on my xbox when it said my xbox didnt have enoght bones to load something, i thought maybe i i opened it up would i find a beating heart in there to?
  19. Re: [mccode v2] Email Activation nice, but you would also have to edit te edit user?
  20. Re: [mccode v2]My Simple Search Streets can you not add items yourself... it's pretty basic, just add anothing think instead of updating the users money in the db update there inventory with what ever item id you want, here, <? include "globals.php"; $userid= $ir['userid']; $turns= $ir['turns']; $rand= rand(0,3); $randmoney= rand(1,100); if($turns == '0') { print "Sorry, you have no turns left today. [url='streets.php']Go Back[/url]"; $h->endpage(); exit; } else if ($rand == '1') { $db->query("UPDATE users SET turns=turns-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$randmoney WHERE userid=$userid"); print "While searching the streets you have come across $$randmoney. [url='streets.php']Go Back[/url]"; } else if ($rand == '2') { $db->query("UPDATE users SET turns=turns-1 WHERE userid=$userid"); $db->query("INSERT INTO inventory ADD inv_itemid=16, inv_qty=1 WHERE inv_userid=$userid"); print "While searching the streets you have come across $$randmoney. [url='streets.php']Go Back[/url]"; } else { $db->query("UPDATE users SET turns=turns-1 WHERE userid=$userid"); print "While searching the streets you did not come across anything. [url='streets.php']Go Back[/url]"; $h->endpage(); exit; } ?>   I think that will work...
  21. Re: My jailescape looks good, im going to give you your first +1 :-D
  22. Re: [mccode v2] Gift.php [edited] it does nw i modified my posted fix.. it works
  23. Re: [mccode v2] Gift.php [edited] whats your new error?
  24. Re: [mccode v2] Gift.php [edited] FIxed, added it just to fix it.... Damn he had stuff like money"money instead of money=money and missed ; off the end of queries etc and some queries were off the original vertion (calling for thanks instead of gifts +1 ) i fixed it pluss 1 me please   <?php /*----------------------------------------------------- -- edited seanybobs gift.php -- Gift.php Edited --Fixed vertion -----------------------------------------------------*/ include("globals.php"); if ($ir['gift'] > 0) { die("Sorry, You Can Only Do This Once A Day"); } $auto = (int)rand(1, 6); if ($auto == 1) { $db->query("UPDATE users SET money=money+750 WHERE userid=$userid", $c); $db->query("UPDATE users set gift=gift+1 WHERE userid={$ir['userid']}", $c); print "Today You Have Been Given $750.00"; } if ($auto == 2) { $db->query("UPDATE users SET money=money+1500 WHERE userid=$userid", $c); $db->query("UPDATE users set gift=gift+1 WHERE userid={$ir['userid']}", $c); print "Today You Have Been Given $1500.00"; } if ($auto == 3) { $db->query("UPDATE users SET money=money+2000 WHERE userid=$userid", $c); $db->query("UPDATE users set gift=gift+1 WHERE userid={$ir['userid']}", $c); $db->query("UPDATE users SET crystals=crystals+14 WHERE userid=$userid", $c); print "Today You Have Been Given 14 Crystalls And $2000.00"; } if ($auto == 4) { $db->query("UPDATE users SET money=money+2500 WHERE userid=$userid", $c); $db->query("UPDATE users set gift=gift+1 WHERE userid={$ir['userid']}", $c); $db->query("UPDATE users SET crystals=crystals+22 WHERE userid=$userid", $c); print "Today You Have Been Given 22 Crystalls And $2500.00"; } if ($auto == 5) { $db->query("UPDATE users SET crystals=crystals+30 WHERE userid=$userid", $c); $db->query("UPDATE users set gift=gift+1 WHERE userid={$ir['userid']}", $c); print "Today You Were Given A Decent Amount Of Crystalls You Got 30"; } if ($auto == 6) { $db->query("UPDATE users SET crystals=crystals+37 WHERE userid=$userid", $c); $db->query("UPDATE users set gift=gift+1 WHERE userid={$ir['userid']}", $c); print "Today You Have Been Given 37 Crystalls"; } ?>
  25. Re: [mccode v2] Gift.php [edited] and your line 13 is fixed.... $auto = (int)rand(1, 6) if ($auto = 1) This is so poorly coded... and thats comming from me!
×
×
  • Create New...