03.08.2015, 21:31
Guys how can I save player's name to fine? I have this:
It just doesn't save player's name to file :/
pawn Код:
enum pInfo
{
pName[24]
}
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
GetName(playerid) = PlayerInfo[playerid][pName];
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteString(File, "Name", PlayerInfo[playerid][pName]);
INI_Close(File);
return 1;
}