19.10.2009, 19:06
Okay, I've tested one time script and every second console needs to print currently time.
And I don't know, every 10 seconds, 1 second missing (sorry for bad English). You can look at the code and you will see where
is the problem.
[20:56:11]/[20:56:13] are normal 'log time' included in server console and 20:56:11/20:26:13 are my 'print time'.
I don't know why [20:56:12] and 20:56:12 is missing.
Here's the pawn code using for 'print time'.
I don't see any error in my code.
Again,sorry for bad English.
And I don't know, every 10 seconds, 1 second missing (sorry for bad English). You can look at the code and you will see where
is the problem.
Код:
[20:56:11] 20:56:11 [20:56:13] 20:56:13
I don't know why [20:56:12] and 20:56:12 is missing.
Here's the pawn code using for 'print time'.
pawn Код:
#include <a_samp>
main(){ SetTimer("atTime",1000,0); }
forward atTime();
public atTime()
{
new iHour,iMinute,iSecond;
new string[64];
gettime(iHour,iMinute,iSecond);
format(string,sizeof(string),"%d:%d:%d",iHour,iMinute,iSecond);
print(string);
SetTimer("atTime",1000,0);
return 1;
}
Again,sorry for bad English.