Gettickcount
#8

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 :
Код:
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);
Reply


Messages In This Thread
Gettickcount - by benalon - 08.10.2012, 20:17
Re: Gettickcount - by park4bmx - 08.10.2012, 20:24
Re: Gettickcount - by benalon - 08.10.2012, 20:29
Re: Gettickcount - by park4bmx - 08.10.2012, 20:41
Re: Gettickcount - by benalon - 08.10.2012, 20:57
Re: Gettickcount - by NeverKnow - 08.10.2012, 21:10
Re: Gettickcount - by benalon - 08.10.2012, 21:13
Re: Gettickcount - by Skillet` - 08.10.2012, 22:30
Re: Gettickcount - by benalon - 08.10.2012, 22:35
Re: Gettickcount - by ReneG - 08.10.2012, 22:37

Forum Jump:


Users browsing this thread: 1 Guest(s)