Jump to content
MakeWebGames

Qucik question


hunter

Recommended Posts

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)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...