A question
#1

I've tried to look on wiki, but it didn't tell me.


'!', I have saw this in example


pawn Код:
if(!IsPlayerInAnyVehicle(playerid))
Can anyone tell me what it does?
Reply
#2

That " ! " is a negation so in you example
pawn Код:
if(!IsPlayerInAnyVehicle(playerid))
That " !IsPlayerInAnyVehicle(playerid) " pawno will understand like if player is NOT in the vehicle do this...

You can get the same effect with:
pawn Код:
if(IsPlayerInAnyVegicle(playerid))
{
    //Some code...
}
else//So this is if player is NOT in the vehicle.
{
    //Some code...
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)