How do I make this?
#7

I forgot to add the setting of the variable.
pawn Код:
new lastvehicle[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    lastvehicle[playerid] = -1;
    return 1;
}

public OnPlayerStateChange(playerid,newstate,oldstate)
{
    if(newstate == 2)
    {
        if(lastvehicle[playerid] != GetPlayerVehicleID(playerid))
        {
            lastvehicle[playerid] = GetPlayerVehicleID(playerid);
            //Different vehicle
           
        }
    }
    return 1;
}
Reply


Messages In This Thread
How do I make this? - by grand.Theft.Otto - 21.07.2011, 01:37
Re: How do I make this? - by [HiC]TheKiller - 21.07.2011, 01:49
Re: How do I make this? - by grand.Theft.Otto - 21.07.2011, 03:32
Re: How do I make this? - by Deskoft - 21.07.2011, 03:38
Re: How do I make this? - by grand.Theft.Otto - 21.07.2011, 03:45
Re: How do I make this? - by Donya - 21.07.2011, 04:00
Re: How do I make this? - by [HiC]TheKiller - 21.07.2011, 04:17

Forum Jump:


Users browsing this thread: 2 Guest(s)