Saving help! [Edited]
#7

Mby you do this.

pawn Код:
// Forward
forward SaveAccount(playerid);
// Public
public SaveAccount(playerid)
{
    new
                userfile[ 132 ],
        INI:File = INI_Open(userfile)
    ;
    format(userfile, sizeof (userfile), "users/%s.ini", pname);
    INI_SetTag(File,"data");
    INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
    INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
    INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
    INI_WriteInt(File,"Adminlevel",PlayerInfo[playerid][pAdminlevel]);
    INI_WriteInt(File,"VIP",PlayerInfo[playerid][pVIP]);
    INI_Close(File);
    return 1;
}

// And add line to OnPlayerDisconnect
SaveAccount(playerid);
EDIT:
Quote:
Originally Posted by timaoux
Посмотреть сообщение
i hate y_ini , thats too complicated
Mby you are so noob to use this ?

OUCH Sorry i forgot. I update my post you got userfile sorry my mistake.
Reply


Messages In This Thread
Saving help! [Edited] - by Yamoo - 26.09.2011, 03:02
Re : Saving help! [Edited] - by timaoux - 26.09.2011, 03:42
Re: Re : Saving help! [Edited] - by Yamoo - 26.09.2011, 04:18
Re : Saving help! [Edited] - by timaoux - 26.09.2011, 10:18
Re: Saving help! [Edited] - by Wesley221 - 26.09.2011, 11:11
Re : Saving help! [Edited] - by timaoux - 26.09.2011, 11:24
Re: Saving help! [Edited] - by Aprezt - 26.09.2011, 11:31
Re: Saving help! [Edited] - by Yamoo - 26.09.2011, 11:52

Forum Jump:


Users browsing this thread: 1 Guest(s)