Quote:
Originally Posted by Rudy_
pawn Код:
public OnPlayerRegister(playerid) { pInfo[playerid][Level] = 1; pInfo[playerid][Admin] = 0; pInfo[playerid][Skin] = 1; pInfo[playerid][Cash] = 5000; //These vars do not save the first time.
GivePlayerMoney(playerid, 5000); SpawnPlayer(playerid);
SetPlayerSkin(playerid, 1);
return 1; }
Where are you saving these?
|
Under OnPlayerDisconnect, and every 5 minutes (incase of server crash)
I tried adding the SavePlayer() function there, but it did not make a difference.