Saving problem
#1

Well, I did this.

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    if(P_Logged[playerid] == 1)
    {
       new INI:File = INI_Open(UserPath(playerid));
       INI_SetTag(File,"Account Data");
       INI_WriteInt(File,"Admin",PlayerInfo[playerid][P_Admin]);
       INI_WriteInt(File,"Kills",PlayerInfo[playerid][P_Kills]);
       INI_WriteInt(File,"Deaths",PlayerInfo[playerid][P_Deaths]);
       INI_WriteInt(File,"Money",GetPlayerMoney(playerid));
       INI_WriteInt(File,"Interior",GetPlayerInterior(playerid));
       INI_WriteInt(File,"VirtualWorld",GetPlayerVirtualWorld(playerid));
       INI_WriteFloat(File,"Health",PlayerInfo[playerid][P_Health]);
       INI_WriteFloat(File,"Armour",PlayerInfo[playerid][P_Armour]);
       INI_Close(File);
       
       GetPlayerHealth(playerid, P_Health);
       GetPlayerArmour(playerid, P_Armour);
    }
    return 1;
}
And got this.

pawn Код:
Gamemode.pwn(96) : error 035: argument type mismatch (argument 2)
Gamemode.pwn(97) : error 035: argument type mismatch (argument 2)
Reply


Messages In This Thread
Saving problem - by Nicholas. - 23.07.2012, 21:43
Re : Saving problem - by Varkoll_ - 23.07.2012, 22:20
Re: Re : Saving problem - by Kindred - 23.07.2012, 22:38

Forum Jump:


Users browsing this thread: 1 Guest(s)