12.02.2012, 00:53
Why are you using an "if" statement on your first code part?
That if statement I think is what's messing you up.
pawn Код:
INI_Save();
INI_Close();
// You need to tell what File to save and what file to close.
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
if(INI_Open(getINI(playerid)))
{
INI_WriteInt("Admin",pFiles[playerid][pAdmin]);
INI_WriteInt("Cash",GetPlayerMoney(playerid));
GetPlayerPos(playerid,pFiles[playerid][posX],pFiles[playerid][posY],pFiles[playerid][posZ]);
INI_WriteFloat("LastX", pFiles[playerid][posX]);
INI_WriteFloat("LastY", pFiles[playerid][posY]);
INI_WriteFloat("LastZ", pFiles[playerid][posZ]);
INI_Save();
INI_Close();
}
return 1;
}