#1

I found it. Sorry
Reply
#2

EDIT: lol, okay.
Reply
#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


Forum Jump:


Users browsing this thread: 2 Guest(s)