22.07.2013, 00:49
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:
Thanks for reading..
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);
}