SA-MP Forums Archive
Error by a check at OnPlayerStateChange [SOLVED] - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Error by a check at OnPlayerStateChange [SOLVED] (/showthread.php?tid=239900)



Error by a check at OnPlayerStateChange [SOLVED] - OldDirtyBastard - 14.03.2011

I need to check if players last state is on foot and old state was NOT as passenger,
but im getting this error:

Код:
warning 213: tag mismatch
my code:

pawn Код:
if(newstate == PLAYER_STATE_ONFOOT && !oldstate == PLAYER_STATE_PASSENGER)
What could be wrong there?

EDIT: Nevermind, solved.