11.01.2014, 20:29
|Hey guys i want to make and register and login system and its working but i got this problem its not saving it to "Users/%.ini"
btw here is the tutorial: Click me.
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
if(INI_Open(getINI(playerid))) {
INI_WriteInt("Level",GetPlayerScore(playerid));
INI_WriteInt("Novac",GetPlayerMoney(playerid));
INI_WriteInt("Admin",PlayerInfo[playerid][pAdmin]);
INI_WriteInt("Organizacija",PlayerInfo[playerid][pOrganizacija]);
INI_WriteInt("Suporter",PlayerInfo[playerid][pSuporter]);
INI_WriteInt("Kuca",PlayerInfo[playerid][pKuca]);
INI_WriteInt("Vozilo",PlayerInfo[playerid][pVozilo]);
INI_WriteInt("Bankovni",PlayerInfo[playerid][pBankRacun]);
INI_WriteInt("Posao",PlayerInfo[playerid][pPosao]);
INI_WriteInt("Upozorenja",PlayerInfo[playerid][pUpozorenja]);
INI_WriteInt("Mutovan",PlayerInfo[playerid][pMutovan]);
INI_WriteInt("Banovan",PlayerInfo[playerid][pBanovan]);
INI_Save();
INI_Close();
}
return 1;
}