Loading with y_ini issue - 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)
+--- Thread: Loading with y_ini issue (
/showthread.php?tid=471675)
Loading with y_ini issue -
xVIP3Rx - 24.10.2013
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.
Re: Loading with y_ini issue -
xVIP3Rx - 25.10.2013
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);
?
Re: Loading with y_ini issue -
]Rafaellos[ - 25.10.2013
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.