timer stats
#5

I'm not sure why you would ever want this... but this is how you would do it.

PHP код:
public OnPlayerSpawn(playerid)
{
    new
        
fstr[50], // This will be used to format the string being sent to the player
        
LoadTime GetTickCount() // We will use this variable to store the loading times.
    
;
    
// Load user stats here... (I can't imagine why you would do this every time the player spawns... but oh well...
    
format(fstrsizeof(fstr), "It took %d milliseconds to load your stats."GetTickCount() - LoadTime);
    
SendClientMessage(playerid, -1fstr);
    
// Rest of OnPlayerSpawn...
    
return 1;

https://sampwiki.blast.hk/wiki/GetTickCount
Reply


Messages In This Thread
timer stats - by risktaker - 25.07.2016, 06:46
Re: timer stats - by Dayrion - 25.07.2016, 06:53
Re: timer stats - by risktaker - 25.07.2016, 09:21
Re: timer stats - by JustMe.77 - 25.07.2016, 11:08
Re: timer stats - by Threshold - 25.07.2016, 11:24
Re: timer stats - by Sew_Sumi - 25.07.2016, 12:50

Forum Jump:


Users browsing this thread: 1 Guest(s)