A question - 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: A question (
/showthread.php?tid=196297)
A question -
SparkZ_ - 05.12.2010
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?
Re: A question -
Alex_Valde - 05.12.2010
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...
}