SA-MP Forums Archive
!if(PlayerInfo[playerid][Level] >= 3) help! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: !if(PlayerInfo[playerid][Level] >= 3) help! (/showthread.php?tid=442191)



!if(PlayerInfo[playerid][Level] >= 3) help! - ChrOnicaL - 06.06.2013

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



Re: !if(PlayerInfo[playerid][Level] >= 3) help! - Vince - 06.06.2013

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


Re: !if(PlayerInfo[playerid][Level] >= 3) help! - xFirex - 06.06.2013

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