SA-MP Forums Archive
bool - 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: bool (/showthread.php?tid=434836)



bool - Zeyo - 04.05.2013

I found it. Sorry


Re: bool - RajatPawar - 04.05.2013

EDIT: lol, okay.


Re: bool - Zeyo - 04.05.2013

I wrote wrong name in the prototype... Sorry again lol

My function is a lot simpler and works properly:

Код:
 
public bool:CheckDriver(playerid)
{
	return ( IsPlayerInAnyVehicle(GetPlayerVehicleID(playerid)) ) && ( GetPlayerState(playerid) == PLAYER_STATE_DRIVER );
}
That operator is just short version of if/else