Loading with y_ini issue
#1

pawn Код:
new File[100];
format(File, sizeof(File), PATH, inputtext);
if(fexist(File))
{
        INI_ParseFile(oFile, "Load", .bExtra = true, .extra = playerid);
}
And the "Load"
pawn Код:
forward Load(playerid, name[], value[]);
public Load(playerid, name[], value[])
{
    new Var;
    INI_Int("Something", Var);
    printf("Var : %i", Var);
    return 1;
}
If "Something" is any number, It still prints 0.
Reply
#2

I think I can't make a local var inside that public, I tried making "Var" a global var and it worked, but I have another problem, How to add more parameters to INI_Parsefile ?
pawn Код:
INI_ParseFile(File, "Load", .bExtra = true, .extra = playerid, second var);
?
Reply
#3

I have the same problem with Floats. For some reason when I INI_Float it is setting the float variables to 0.

Maybe someone could help both of us.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)