17.01.2015, 13:53
I made a filterscript with save system with Y_INI,
But how can i load info from the file.
Please Help !
But how can i load info from the file.
Please Help !
GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]
I have the enum and i saved the player state but the problem how to load the player status after he leae or after the server restart ?
|
public OnPlayerDisconnect(playerid, reason) { new INI:File = INI_Open(UserPath(playerid)); INI_SetTag(File,"data"); INI_WriteInt(File,"Cash",GetPlayerMoney(playerid)); INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]); INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]); INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]); INI_Close(File); return 1; }