"or" condition?
#2

if(admin[playerid] != 4 || omod[playerid] != id) return SendClientMessage(playerid, red, "You cannot use this command.");

That means you cannot use the command if admin[playerid] does NOT equal 4 or if omod[playerid] does NOT equal id

Only you will know if that is correct or not since it's your script.
Reply


Messages In This Thread
"or" condition? - by THE_KNOWN - 08.04.2011, 06:55
Re: "or" condition? - by BMUK - 08.04.2011, 08:38
Re: "or" condition? - by THE_KNOWN - 08.04.2011, 08:58
Re: "or" condition? - by BMUK - 08.04.2011, 09:05
Re: "or" condition? - by THE_KNOWN - 08.04.2011, 12:06
Re: "or" condition? - by [03]Garsino - 08.04.2011, 12:10
Re: "or" condition? - by THE_KNOWN - 08.04.2011, 12:11
Re: "or" condition? - by THE_KNOWN - 08.04.2011, 12:16
Re: "or" condition? - by [03]Garsino - 08.04.2011, 12:21
Re: "or" condition? - by THE_KNOWN - 08.04.2011, 12:29

Forum Jump:


Users browsing this thread: 1 Guest(s)