26.07.2011, 12:44
(
Последний раз редактировалось Sreadon; 26.07.2011 в 15:41.
)
Ok thank's, I've replace the second "if" by "else if". Yeah, I know dini is old and slow, but I don'k know what else I can use.. I've read some MySQL tutorials but I don't like the system because that's need a database.
[EDIT]:
I've tryed a lot of things.. This one work but only one once, If "Reboot" is at 0, that make 1, but if I reboot again, It's always show 1..
[EDIT 2]: Solved, replace dini_Get by dini_Int
[EDIT]:
I've tryed a lot of things.. This one work but only one once, If "Reboot" is at 0, that make 1, but if I reboot again, It's always show 1..
pawn Код:
format(file, sizeof(file), "/Server/TimeOnline.ini");
if (!dini_Exists(file))
{
dini_IntSet(file, "Reboots", 0);
}
else if(fexist(file))
{
dini_Get(file, "Reboots");
ServerInfo[Reboots]++;
dini_IntSet(file,"Reboots",ServerInfo[Reboots]);
}