[Help]Gettickinsecond
#1

How do miliseconds when a player hits the rec example 2.13sec?
PHP код:
FUNCTION: xReactionTest(playerid)
{
    new
        
xLength = (random(8) + 2),
        
string[256]
    ;
    
xCash = (random(784) + 287);
    
format(xCharssizeof(xChars), "");
    
Loop(xxLengthformat(xCharssizeof(xChars), "%s%s"xCharsxCharacters[random(sizeof(xCharacters))][0]);
    
format(stringsizeof(string), "{FF0000}[TK]{FFFFFF}Ko prvi upise u cetu {FF0000}%s{FFFFFF} dobija %d$. TRENUTNI REKORD: %s (%.i sek.)"xCharsxCash,ImeMarkoni(playerid),GetTimerInSeconds(GetTickCount()));
    
SendClientMessageToAll(PURPLEstring);
    
KillTimer(xReactionTimer);
    
xTestBusy true;
    
SetTimer("xReactionProgress"500000);
    
//return 1;
}
GetTimerInSeconds(now,playerid)
{
    new 
timers PlayerInfo[playerid][pStartTime];
   new 
secsms;
   
ms now timers;
   while(
ms 999) {
       
secs++;
       
ms ms-1000;
   }
   return 
secs;

Reply
#2

Bump!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)