13.04.2017, 14:18
so I'm working on car ownership system and I have made it so player can own one car and when he disconnect it saves his car like the following:
but this saves one car but what if he have more than one car how can I make it save anycar he own not one car like pvehicle[playerid][I]
i just need to know how to make it be pvehicle[playerid][i] which [i] is infinit and i can finish my self
players is max_players.
PHP код:
if (pvehicle[playerid][0] != 0)
{
pvehicle[playerid][0] = 0;
}
i just need to know how to make it be pvehicle[playerid][i] which [i] is infinit and i can finish my self
PHP код:
new pvehicle[PLAYERS][3];