Statistics problem
#3

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..

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]);
            }
[EDIT 2]: Solved, replace dini_Get by dini_Int
Reply


Messages In This Thread
Statistics problem - by Sreadon - 26.07.2011, 12:07
Re : Statistics problem - by Sreadon - 26.07.2011, 12:36
Re : Statistics problem - by Sreadon - 26.07.2011, 12:44

Forum Jump:


Users browsing this thread: 1 Guest(s)