#3

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
Reply


Messages In This Thread
bool - by Zeyo - 04.05.2013, 12:43
Re: bool - by RajatPawar - 04.05.2013, 12:48
Re: bool - by Zeyo - 04.05.2013, 12:49

Forum Jump:


Users browsing this thread: 1 Guest(s)