Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Time Help

$
0
0
hi I got this
PHP Code:

        if (jailedtime[i] != 0)
        {
            new 
str[256];
            
format(strsizeof(str), "~n~~n~~n~~n~~w~-Unjailed in: %d secs"jailedtime[i]);
            
GameTextForPlayer(istr10003);
            
jailedtime[i] --;
            if (
jailedtime[i] == 0){
                
GetPlayerName(istring1MAX_PLAYER_NAME);
                
dini_Unset(AddDirFile(dir_userfilesstring1), "jailtime");
                
dini_Unset(AddDirFile(dir_userfilesstring1), "jailloc");
                
SetPlayerInterior(i0);
                
SetPlayerVirtualWorld2(i0);
                
SetPlayerPos(iwspawns[dspawn[i]][0], wspawns[dspawn[i]][1], wspawns[dspawn[i]][2] + 1.0);
                
SetPlayerFacingAngle(iwspawns[dspawn[i]][3]);
                
SetCameraBehindPlayer(i);
                
TogglePlayerControllable(i1);
                new 
string2[128];
                
format(string2128"%s has been unjailed after serving their time inside."string1);
                
SendClientMessageToAll2(COLOR_WHITEstring2);
            }
        } 

this show me time in seconds can I make it to be in mins and secs like 2:02
can anyone help?

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>