18.04.2019, 11:28
Hello, when I try to log off save one position on the whole car I have.
https://pastebin.com/Sh5Gf1j8
#define MAX_OWNED_VEHICLES 5
new playerCar[MAX_PLAYERS][MAX_OWNED_VEHICLES];
Using:
OnGameModeExit
savePlayerCar ( p, playerCar[p][0]) ;
savePlayerCar ( p, playerCar[p][1]) ;
OnPlayerDisconnect
savePlayerCar ( playerid, playerCar[playerid][0]) ;
savePlayerCar ( playerid, playerCar[playerid][1]) ;
https://pastebin.com/Sh5Gf1j8
#define MAX_OWNED_VEHICLES 5
new playerCar[MAX_PLAYERS][MAX_OWNED_VEHICLES];
Using:
OnGameModeExit
savePlayerCar ( p, playerCar[p][0]) ;
savePlayerCar ( p, playerCar[p][1]) ;
OnPlayerDisconnect
savePlayerCar ( playerid, playerCar[playerid][0]) ;
savePlayerCar ( playerid, playerCar[playerid][1]) ;