SA-MP Forums Archive
Enums in dini - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Enums in dini (/showthread.php?tid=71686)



Enums in dini - Rks25 - 03.04.2009

Can variables like playerinfo attached with enum , simply get saved in dini? Because everyone says, no it is not possible.


Re: Enums in dini - Nero_3D - 03.04.2009

pawn Код:
enum PIENUM
{
    Variable,
    Array[5],
    Float:Float,
    bool:Boolean;
}
new PlayerInfo[MAX_PLAYERS][PIENUM];
pawn Код:
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]);
or what you mean ? :S


Re: Enums in dini - Rks25 - 03.04.2009

yes i did that. But everyone said it was impossible:S


Re: Enums in dini - MenaceX^ - 03.04.2009

It isn't impossibe..


Re: Enums in dini - Norn - 03.04.2009

I thought after all your years of being here you would atleast have some common sense, or atleast LOOK at the functions. Your simply saving variables to file, nothing more. Obviously it's gonna work!


Re: Enums in dini - StrickenKid - 03.04.2009

thats how i have mine


Re: Enums in dini - LarzI - 03.04.2009

Yeah, why shouldn't it work?