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