08.01.2011, 21:52
Hello,
I'm making a new server with DINI but i can't find a way to save it
properly from enum. Nothing is saving, i copied the one how i made
the skin save system with dini and pasted here to show so you can
say what's wrong with it. Script:
And when the players '/register's:
And when the player '/login's:
Everything is compiling fine, even the variable in the .ini won't save..
So everything in the .ini userfile stays the same... I don't know what
i did wrong, everything seems be right but..
Thanks..
K. Regards,
I. C.
I'm making a new server with DINI but i can't find a way to save it
properly from enum. Nothing is saving, i copied the one how i made
the skin save system with dini and pasted here to show so you can
say what's wrong with it. Script:
Код:
enum pInfo { pSkin, } new PlayerInfo[MAX_PLAYERS][pInfo];
Код:
public OnPlayerDisconnect(playerid, reason) { new name[MAX_PLAYER_NAME], file[256]; GetPlayerName(playerid, name, sizeof(name)); format(file, sizeof(file), "/Chrystal Roleplay/Users/%.ini", name); dini_IntSet(file,"pSkin", GetPlayerSkin(playerid)); gPlayerLogged[playerid] = 0; return 1; }
Код:
dini_IntSet(file,"pSkin", 97);
Код:
SetPlayerSkin(playerid, dini_Int(file, "pSkin"));
So everything in the .ini userfile stays the same... I don't know what
i did wrong, everything seems be right but..
Thanks..
K. Regards,
I. C.