08.10.2012, 22:30
won*
and as you can see 451 = 4.51 means untill 1000 the dot will be 1 number after the first.
so maybe something like this :
and as you can see 451 = 4.51 means untill 1000 the dot will be 1 number after the first.
so maybe something like this :
Код:
new tick1 = GetTickCount() - TRCount[playerid]; new tick2 = GetTickCount() - TRCount[playerid]; if(tick1 < 1000 && tick2 < 1000 ) { strdel(tick1,2,3); strdel(tick2,1,1); } if(tick1 < 10000 && tick2 < 10000 ) { strdel(tick1,3,4); strdel(tick2,1,2); } if(tick1 < 100000 && tick2 < 100000 ) { strdel(tick1,4,5); strdel(tick2,1,3); } format(str,sizeof(str),"%s won the race in %d.%d seconds",GetName(playerid),tick1,tick2);