18.12.2012, 17:07
Quote:
For the love of god, stop coming to the forum for EVERY single thing you need help with.
|
Quote:
Do you have a saving function what oyu use on disconnect or something, the fault can also be there.
And a loading function? |
pawn Code:
new INI:File = INI_Open(Path(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Cash",GetPlayerCash(playerid));
INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
INI_WriteInt(File,"Kills",GetPlayerScore(playerid));
INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
INI_WriteInt(File,"NoPm",PlayerInfo[playerid][pNopm]);
INI_WriteInt(File,"Mute",PlayerInfo[playerid][pMuted]);
INI_WriteInt(File,"Vip",PlayerInfo[playerid][pVip]);
INI_WriteInt(File,"C4",PlayerInfo[playerid][pC4]);
INI_WriteInt(File,"Banned",PlayerInfo[playerid][pBanned]);
INI_WriteInt(File,"Cookies",PlayerInfo[playerid][pCookies]);
INI_WriteInt(File,"Warn",PlayerInfo[playerid][pWarn]);
INI_WriteInt(File, "RegisterDate_day", PlayerInfo[playerid][RegisterDate_day]);
INI_WriteInt(File, "RegisterDate_mon", PlayerInfo[playerid][RegisterDate_mon]);
INI_WriteInt(File, "RegisterDate_year", PlayerInfo[playerid][RegisterDate_year]);
INI_WriteInt(File, "RegisterDate_hour", PlayerInfo[playerid][RegisterDate_hour]);
INI_WriteInt(File, "RegisterDate_min", PlayerInfo[playerid][RegisterDate_min]);
INI_WriteInt(File, "RegisterDate_sec", PlayerInfo[playerid][RegisterDate_sec]);
INI_WriteInt(File,"Jailed",PlayerInfo[playerid][pJailed]);
INI_WriteInt(File,"Logged",0);
INI_WriteInt(File,"B_Time",PlayerInfo[playerid][B_Time]);
INI_WriteInt(File,"B_Till",PlayerInfo[playerid][B_Till]);
INI_WriteInt(File,"AdminActions",PlayerInfo[playerid][pAdminActions]);
INI_WriteInt(File,"Rank",PlayerInfo[playerid][pRank]);
INI_Close(File);