18.11.2009, 03:30
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;
}