only a single statement (or expression) can follow each "case"
#7

Quote:
Originally Posted by PowerSurge
Quote:
Originally Posted by biltong
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
Or..

pawn Код:
if(!IsPlayerInAnyVehicle(playerid)) { }
When you call a function, like this one, it returns 1 if true, and 0 if false.
Note the '!'.. Putting that in front of it means '== 0', without it, it means '== 1'.
That is new for me tny alot you learn me something
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)