Y_INI (INI_LOAD)..
#1

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..
Reply
#2

You must be blind

new INI:iniFile = INI_Open("settigs.ini");

new INI:iniFile = INI_Open("settings.ini");
Reply
#3

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..
Reply
#4

No idea then, simply not enough code is posted.
Reply
#5

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

Nevermind. Fixed
Reply
#7

lol, sorry for spam, by mistake lol.
Reply
#8

Congratulations, note: You cannot correct spam with spam.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)