12.10.2011, 02:22
So you write the data upon disconnect, what's the point of the SaveUserData function?
Use OnPlayerSpawn as a debugging method, and try creating a seperate function to be called once the player is actually logged in.
PHP код:
OnPlayerDisconnect(playerid, reason) { SaveUserData(playerid); };
PHP код:
OnPlayerSpawn(playerid) { GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]); SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]); }