[Help]Dini, again
#2

That's because you didn't set the file name before you write the data to it

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    new file[50], Float:Armour;
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(file, sizeof(file), "%s.ini", name);
    GetPlayerArmour(playerid, Armour);
    dini_FloatSet(file, "Armour", Armour);
    return 1;
}
Reply


Messages In This Thread
[Help]Dini, again - by Dirty_bum - 18.11.2009, 03:10
Re: [Help]Dini, again - by Zeex - 18.11.2009, 03:30
Re: [Help]Dini, again - by Dirty_bum - 18.11.2009, 04:06
Re: [Help]Dini, again - by LarzI - 18.11.2009, 12:07

Forum Jump:


Users browsing this thread: 1 Guest(s)