YINI Problem
#2

when loading information you would need to perse that information first like this
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));
}
then to actually perse the file
you use
pawn Code:
INI_ParseFile(file, "PerseMoney", false, true, playerid, true, false );
Reply


Messages In This Thread
YINI Problem - by Swyft™ - 27.10.2011, 20:27
Re: YINI Problem - by park4bmx - 27.10.2011, 20:35
Re: YINI Problem - by Swyft™ - 27.10.2011, 20:40
Re: YINI Problem - by park4bmx - 27.10.2011, 20:48
Re: YINI Problem - by Swyft™ - 27.10.2011, 20:55
Re: YINI Problem - by park4bmx - 27.10.2011, 20:57
Re: YINI Problem - by Swyft™ - 27.10.2011, 21:11
Re: YINI Problem - by Swyft™ - 28.10.2011, 02:18
Re: YINI Problem - by Swyft™ - 28.10.2011, 04:56
Re: YINI Problem - by park4bmx - 28.10.2011, 09:41

Forum Jump:


Users browsing this thread: 1 Guest(s)