Less than ID 15
Код:
[11:34:58] [part] admin has left the server (14:1)
[11:34:58] Stats are saving... Completed. (ID: 14)
when we have id greater than 15
Код:
[11:36:23] [part] Neeraj has left the server (29:1)
pawn Код:
stock SavePlayer(playerid)
{
if(Logged[playerid] == 1)
{
if(Spawned[playerid] == 1)
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data"); //kayэt5
INI_WriteInt(File,"Password",PlayerInfo[playerid][pPass]);
INI_WriteInt(File,"Cash",PlayerInfo[playerid][pCash]);
INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
INI_WriteInt(File,"Donate",PlayerInfo[playerid][pDonate]);
INI_WriteInt(File,"Level",PlayerInfo[playerid][pLevel]);
INI_WriteInt(File,"Exp",PlayerInfo[playerid][pExp]);
INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
INI_WriteInt(File,"Skin",PlayerInfo[playerid][pSkin]);
INI_WriteInt(File,"Lang",PlayerInfo[playerid][pLang]);
INI_WriteInt(File,"Bank",PlayerInfo[playerid][pBank]);
INI_WriteInt(File,"Banned",PlayerInfo[playerid][pBanned]);
INI_WriteInt(File,"Mute",PlayerInfo[playerid][pMute]);
INI_WriteInt(File,"UP",PlayerInfo[playerid][pUP]);
INI_WriteInt(File,"GangBoss",PlayerInfo[playerid][pGangBoss]);
INI_WriteInt(File,"FightStyle",PlayerInfo[playerid][pFightStyle]);
INI_WriteInt(File,"Jail",PlayerInfo[playerid][pJail]);
INI_WriteInt(File,"DuelWin",PlayerInfo[playerid][pDuelWin]);
INI_WriteInt(File,"DuelLose",PlayerInfo[playerid][pDuelLose]);
INI_WriteInt(File,"AADdeath",PlayerInfo[playerid][pAADdeath]);
INI_WriteInt(File,"AADkill",PlayerInfo[playerid][pAADkill]);
INI_Close(File);
printf("Stats are saving... Completed. (ID: %d)",playerid);
}
}
return 1;
}