27.10.2011, 20:35
when loading information you would need to perse that information first like this
Example
then to actually perse the file
you use
Example
pawn Code:
//this is the function
forward PerseMoney(playerid, name[], value[]);
public PerseMoney(playerid, name[], value[])
{
if(!strcmp(name, "Money"))SetPVarInt(playerid,"Money", strval(value));
//this just an exampe u can use what ever your one is like:
if(!strcmp(name, "Admin Level"))SetPVarInt(playerid,"Admin Level", strval(value));
}
you use
pawn Code:
INI_ParseFile(file, "PerseMoney", false, true, playerid, true, false );