hunter Posted July 9, 2007 Posted July 9, 2007 anyone know how id go about setting so game players cant attack admins Quote
KyleCrispy Posted July 9, 2007 Posted July 9, 2007 Re: Qucik question V2: if($r[user_level]==2 && $r[user_level]==3 $r[user_level]==5) { $db->query("update users set hospital=10, hospreason=Tried to attack a Staff player where userid=$userid",$c) or die(mysql_error()); echo "STAFF cannot be attacked"; } V1: if($r[user_level]==6 && $r[user_level]==3 $r[user_level]==5) { mysql_query("update users set hospital=10, hospreason=Tried to attack a Staff player where userid=$userid",$c) or die(mysql_error()); echo "STAFF cannot be attacked"; } if you want to change the staff positions just change it here if($r[user_level]==6 && $r[user_level]==3 $r[user_level]==5) Quote
UCC Posted July 9, 2007 Posted July 9, 2007 Re: Qucik question Kyle - You code is very fucked up. I dont want to even try and count the errors. Try again. Quote
Decepti0n Posted July 9, 2007 Posted July 9, 2007 Re: Qucik question if ($r['user_level'] == 2) :P Quote
UCC Posted July 9, 2007 Posted July 9, 2007 Re: Qucik question Fine, I'll bite on another.... hospreason='Tried to attack a Staff Player' Quote
iseeyou94056 Posted July 10, 2007 Posted July 10, 2007 Re: Qucik question this goes into attack.php right Quote
John99 Posted July 10, 2007 Posted July 10, 2007 Re: Qucik question no on mainmenu.php lmfao of course attack.php lol Quote
KyleCrispy Posted July 10, 2007 Posted July 10, 2007 Re: Qucik question not in header and my codes work not with out errors and they work perfect for me Quote
iseeyou94056 Posted July 10, 2007 Posted July 10, 2007 Re: Qucik question lol my menu is my header thats y i did that sry lol Quote
UCC Posted July 10, 2007 Posted July 10, 2007 Re: Qucik question not in header and my codes work not with out errors and they work perfect for me You can lie all you want but there are way too many bugs in your code for it to work. Your if statements are setup wrong and your queries will eroror out in SQL. Quote
Matty Posted July 10, 2007 Posted July 10, 2007 Re: Qucik question not in header and my codes work not with out errors and they work perfect for me Thats the funniest thing I've read this week! I will highlight in bold what is wrong with your code... okay? V2: if($r[user_level]==2 && $r[user_level]==3 $r[user_level]==5) { $db->query("update users set hospital=10, hospreason=Tried to attack a Staff player where userid=$userid",$c) or die(mysql_error()); echo "STAFF cannot be attacked"; } V1: if($r[user_level]==6 && $r[user_level]==3 $r[user_level]==5) { mysql_query("update users set hospital=10, hospreason=Tried to attack a Staff player where userid=$userid",$c) or die(mysql_error()); echo "STAFF cannot be attacked"; } Well actually the echo are about the only thing there that will work... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.