30.03.2013, 13:31
I have a problem with checking if players race time is better then the record.
m - players minutes
s - players seconds
ms - players mseconds
rm - record minutes
rs - sec
rms - msec
This code is just not working, and the time is better then the record :/
m - players minutes
s - players seconds
ms - players mseconds
rm - record minutes
rs - sec
rms - msec
Код:
if(m < rm) { if(s == rs) { if(ms < rms) { SendClientMessageToAll(-1,"{FFFFFF}Rekord"); } } else if(s < rs) { SendClientMessageToAll(-1,"{FFFFFF}Rekord"); } } else if( m == rm) { if(s == rs) { if(ms < rms) { SendClientMessageToAll(-1,"{FFFFFF}Rekord"); } } else if(s < rs) { SendClientMessageToAll(-1,"{FFFFFF}Rekord"); } }