Y_INI (INI_LOAD).. - 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: Y_INI (INI_LOAD).. (
/showthread.php?tid=452616)
Y_INI (INI_LOAD).. -
[D]ry[D]esert - 22.07.2013
Hello Everyone.
I tried to save server's stats...
And when i tried to INI_Load it wont get called, I also tried to debug using
here is my code:
pawn Код:
forward SaveServerSettings();
pawn Код:
//Some where i've added this
INI:settings[](name[], value[])
{
INI_Int("AccountsNum", RegisteredAccounts);
print("accountnumber loaded");
return 0;
}
pawn Код:
//under main()
NI_Load("settings.ini");
pawn Код:
public SaveServerSettings()
{
new INI:iniFile = INI_Open("settigs.ini");
INI_SetTag(iniFile, "Stats");
INI_WriteInt(iniFile, "AccountsNum", RegisteredAccounts);
INI_Close(iniFile);
}
Thanks for reading..
Re: Y_INI (INI_LOAD).. -
Pottus - 22.07.2013
You must be blind
new INI:iniFile = INI_Open("settigs.ini");
new INI:iniFile = INI_Open("settings.ini");
Re: Y_INI (INI_LOAD).. -
[D]ry[D]esert - 22.07.2013
Quote:
Originally Posted by [uL]Pottus
You must be blind
new INI:iniFile = INI_Open("settigs.ini");
new INI:iniFile = INI_Open("settings.ini");
|
fixed, but that was not my problem, it still wont be loaded..
Re: Y_INI (INI_LOAD).. -
Pottus - 22.07.2013
No idea then, simply not enough code is posted.
Re: Y_INI (INI_LOAD).. -
[D]ry[D]esert - 22.07.2013
Quote:
Originally Posted by [uL]Pottus
No idea then, simply not enough code is posted.
|
lol ?
What shall i add more than this ? its all i have got.
Re: Y_INI (INI_LOAD).. -
[D]ry[D]esert - 22.07.2013
Nevermind. Fixed
Re: Y_INI (INI_LOAD)..[FIXED] -
[D]ry[D]esert - 22.07.2013
lol, sorry for spam, by mistake lol.
Re: Y_INI (INI_LOAD).. -
IceCube! - 22.07.2013
Congratulations, note: You cannot correct spam with spam.