09.11.2013, 02:17
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;
}