• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] record time
#1
PHP Code:
main() { 

SetTimer("update"10true);

}



ReturnTime(timevariable)

//Used in the OnPlayerEnterRaceCheckpoint code.

{

? ? new 
milliseconds timevariablestring[20];

? ? while(
milliseconds 999)

? ? {

? ? ? ? 
//Add to the seconds variable

? ? ? ? milliseconds milliseconds 10;

? ? ? ? 
//Take away 10 from the ms variable

? ? }

? ? 
format(stringsizeof(string), "%05d"milliseconds);

? ? return 
string;







Quote:00588

00589

00590

00591

00592

00593

00594

00595

00596

00597

00598

00599



I just want them to be like this?https://youtu.be/v62Gt38ngzM?t=28

[Image: unknown.png]



7.865 second



Any help please
  Reply
#2
Divide by 60000 for minutes, mod by 60000 for milliseconds, divide that by 1000 for seconds.
  Reply


Forum Jump: