Vehicle help
#2

Use a loop.
Код:
//~ You are inside your player data save function ~
for(new i; i<3; i++)
{
    if(pvehicle[playerid][i] != 0)
    {
         //Do things
     }
}
I recommend you to define the maximum player vehicles, e.g.:
Код:
#define MAX_PLAYER_VEHICLES 3
And change "i<3" to "i<MAX_PLAYER_VEHICLES".
Reply


Messages In This Thread
Vehicle help - by silverms - 13.04.2017, 14:18
Re: Vehicle help - by renatog - 13.04.2017, 14:23
Re: Vehicle help - by XpDeviL - 13.04.2017, 14:25
Re: Vehicle help - by silverms - 13.04.2017, 14:26

Forum Jump:


Users browsing this thread: 2 Guest(s)