Doube line on log?
#1

Hai,i've a problem with a small log:

This saves the health of player when disconnect in a log file:

Код:
	new string[128];
    new File:log = fopen("/LogS/hp.log", io_append);
    new Float:health; GetPlayerHealth(playerid,health);
    format(string,64, "Player %s quitted with health: %f\r\n", playername, health);
    fwrite(log, string);
    fclose(log);
I've a problem,why when i open the logs,i see 2-3 same lines and different HP?

Like this:

Player Jim_Kill quitted with health: 100.000000
Player Jim_Kill quitted with health: 17.000000
Player Jim_Kill quitted with health: 0.000000

Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)