Loading system
#3

use the https://sampforum.blast.hk/showthread.php?tid=273088

forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
INI_Int("Password",PlayerInfo[playerid][pPass]);
INI_Int("Cash",PlayerInfo[playerid][pCash]);
INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
INI_Int("Kills",PlayerInfo[playerid][pKills]);
INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
return 1;
}

that mean load the data

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;
}
that's mean write
Reply


Messages In This Thread
Loading system - by wmt - 27.05.2012, 16:38
Re: Loading system - by Audi_Quattrix - 27.05.2012, 16:43
Re: Loading system - by peterory - 27.05.2012, 16:44
Re: Loading system - by wmt - 27.05.2012, 16:47
Re: Loading system - by Audi_Quattrix - 27.05.2012, 16:55
Re: Loading system - by wmt - 27.05.2012, 17:11
Re: Loading system - by Audi_Quattrix - 27.05.2012, 17:18
Re: Loading system - by wmt - 27.05.2012, 17:28
Re: Loading system - by Audi_Quattrix - 27.05.2012, 17:36

Forum Jump:


Users browsing this thread: 1 Guest(s)