INI Parse File help
#2

pawn Код:
INI_ParseFile("/Variables/vars.ini", "getVar_Stats", .bExtra = true, .extra = playerid);
// This will load everything below + allow you to use playerid. Use this when you want
// to load the players data for the first time. It has to be under a function which has
// playerid as a parameter.

forward getVar_Stats(playerid,name[],value[]);
public getVar_Stats(playerid,name[],value[])
// This will return the information wanted (value[]) for the playerid. Through
// Y_INI.
{
    INI_Int("IntVar", IntVar);
    INI_String("StringVar", StringVar, 24);
    INI_Float("FloatVar", FloatVar);
    return 1;
}
Reply


Messages In This Thread
INI Parse File help - by erminpr0 - 08.11.2013, 23:09
Re: INI Parse File help - by AlonzoTorres - 09.11.2013, 02:17

Forum Jump:


Users browsing this thread: 1 Guest(s)