Big problem with variables
#2

Supposed to get if the player enters the faction car, and also...

pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER))
{

//NOT

if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
EDIT: Like

pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER))
{
        if(IsPlayerInAnyVehicle(playerid) == FACTIONCAR)
        {
                if(IsPlayerInFaction(playerid)) return 1;
        }
}
Something like that.

EDIT 2: Don't use PHP Code use
[ pawn ] [ /pawn ]

without the spaces.
Reply


Messages In This Thread
Big problem with variables - by Scriptissue - 01.10.2010, 21:50
Re: Big problem with variables - by willsuckformoney - 01.10.2010, 22:27

Forum Jump:


Users browsing this thread: 1 Guest(s)