Enums in dini
#1

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

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
Reply
#3

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

It isn't impossibe..
Reply
#5

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!
Reply
#6

thats how i have mine
Reply
#7

Yeah, why shouldn't it work?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)