26.11.2010, 09:33
Hai,i've a problem with a small log:
This saves the health of player when disconnect in a log file:
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.
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);
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.