Can't save player's score and money when he quit the game
#9

dini_IntSet(file, "Money", Playerinfo[playerid][pCash]);

instead of

dini_IntSet(file, "Money", GetPlayerMoney(playerid));

under

Код:
public OnPlayerDisconnect(playerid, reason)
{
	dini_IntSet(file, "Score", PlayerInfo[playerid][pScore]);
	dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdminLevel]); 
	dini_IntSet(file, "RobLevel",PlayerInfo[playerid][pRobRank]);
	dini_IntSet(file, "Money", GetPlayerMoney(playerid));
return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)