05.07.2010, 22:09
I'm having an issue. I'm new to using Dini/any saving stats thing period. I created a register and login out of a dialog using Dini. I added to that it saves everything. Anything in my enum pInfo such as "Faction" or "BankMoney" saves, but Skin and Position do not save. Here is the code I'm using to save and load:
OnPlayerDisconnect:
When the player logs in:
I did the same thing with money, and money saves perfectly. Can anyone help me with this?
OnPlayerDisconnect:
Code:
PlayerInfo[playerid][Skin] = GetPlayerSkin(playerid); dini_IntSet(file,"Skin", PlayerInfo[playerid][Skin]);
Code:
SetPlayerSkin(playerid, PlayerInfo[playerid][Skin]);