03.04.2009, 08:28
Can variables like playerinfo attached with enum , simply get saved in dini? Because everyone says, no it is not possible.
enum PIENUM
{
Variable,
Array[5],
Float:Float,
bool:Boolean;
}
new PlayerInfo[MAX_PLAYERS][PIENUM];
dini_IntSet("file.txt", "Variable", PlayerInfo[playerid][Variable]);
dini_Set("file.txt", "Variable", PlayerInfo[playerid][Array]);
dini_FloatSet("file.txt", PlayerInfo[playerid][Float]);
dini_IntSet("file.txt", "Bool", PlayerInfo[playerid][Boolean]);