View Single Post
Old 12/01/2011, 01:16 AM   #2
JaTochNietDan
High-roller
 
JaTochNietDan's Avatar
 
Join Date: Apr 2007
Location: Republic of Ireland
Posts: 2,502
Reputation: 363
Default Re: Y_INI annoyin' issue

Your syntax is wrong, that function is the function that stores the information into the variables. Like so:

pawn Code:
INI:playerfile[](playerid, name[], value[])
{
   INI_Int("cash",PlayerInfo[playerid][Cash]);
   return 0;
}
That function goes anywhere in the script.

Then when you want to load the data you would run:

pawn Code:
INI_Load("playerfile.ini", true, playerid);
__________________
Releases:
[Includes]: [jBan] | [jBanLite]
[Plugins]: [FileManager] | [Execute]
[Applications]: [Remote Administrator *NEW] | [Script King] | [RCON GUI]
JaTochNietDan is offline