English Lua not/and/or

5 replies
Goto Page
To the start Previous 1 Next To the start
20.02.11 11:09:45 pm
Up
Syph
User
Offline Off
Rly I need help with a thing :

Code:
1
if player(pl,"exists") and (player(pl,"team")==1 or player(pl,"team")==2) and not(isAdmin(pl) or isMod(id)) then


i just want to ask if the " not(isAdmin(pl) or isMod(id))"
is correct
or some 1 can correct it for me ?

Admin/mod comment:

"Help!? Please ?" is a pointless title! choose a better one next time... fixed.
20.02.11 11:21:53 pm
Up
Kirschkaffee
User
Offline Off
i dont know about LUA, but i guess you have to include the whole if-condition into brackets.

if ((bla) and (bla(bla)) etc pp )
20.02.11 11:31:14 pm
Up
Syph
User
Offline Off
Kirschkaffee has written:
i dont know about LUA, but i guess you have to include the whole if-condition into brackets.

if ((bla) and (bla(bla)) etc pp )

dude i know that im askin other thing --' ...
20.02.11 11:48:03 pm
Up
Robotic-Brain
User
Offline Off
this returns true if the player is a normal player and neither admin nor mod
21.02.11 03:25:28 am
Up
Syph
User
Offline Off
Robotic-Brain has written:
this returns true if the player is a normal player and neither admin nor mod

i want to know if that
"and not(isAdmin(id) or isMod(id))"
is correct
21.02.11 03:58:14 am
Up
Robotic-Brain
User
Offline Off
if you want this behavior
Robotic-Brain has written:
this returns true if the player is a normal player and neither admin nor mod


yes
To the start Previous 1 Next To the start