!if(PlayerInfo[playerid][Level] >= 3) help!
#1

Hey im wondering why this is not working.

code:


pawn Code:
if(newkeys & KEY_FIRE && ForbiddenWeap(playerid) && !if(PlayerInfo[playerid][Level] >= 3))
                                                                                               //^^^^^^^^ Its there. wats wrong with it
Error code:

Code:
C:\Documents and Settings\EPUser\Desktop\PROJECT L.S.G.W\lsadmin18.pwn(5361) : error 029: invalid expression, assumed zero
C:\Documents and Settings\EPUser\Desktop\PROJECT L.S.G.W\lsadmin18.pwn(5361) : warning 215: expression has no effect
C:\Documents and Settings\EPUser\Desktop\PROJECT L.S.G.W\lsadmin18.pwn(5361) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\EPUser\Desktop\PROJECT L.S.G.W\lsadmin18.pwn(5361) : error 029: invalid expression, assumed zero
C:\Documents and Settings\EPUser\Desktop\PROJECT L.S.G.W\lsadmin18.pwn(5361) : fatal error 107: too many error messages on one line
Reply
#2

Just remove the 'if'. Or use the smaller-than operator instead.
Reply
#3

pawn Code:
if(newkeys & KEY_FIRE && ForbiddenWeap(playerid) && PlayerInfo[playerid][Level] >= 3))
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)