Posts: 1,767
	Threads: 124
	Joined: Mar 2010
	
	
 
	
	
		I wanted to change this time:
pawn Code:
format(string, sizeof(string), ""COL_LYELL"Musisz poczekać jeszcze: "COL_RED"%d, "COL_LIMON"aby zmienić status.", (GetPVarInt(playerid, "LastZW") - GetTickCount()) / 1000 + MINUTES(10));
 
to something like that:
pawn Code:
format(string, sizeof(string), ""COL_LYELL"Musisz poczekać jeszcze: "COL_RED"%dminutes %d seconds, "COL_LIMON"aby zmienić status.", minutes?, seconds?);
 
Please? 
	 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 1,767
	Threads: 124
	Joined: Mar 2010
	
	
 
	
	
		Damn, where i made a mistake? Because it shows me it's 9999min and 59sec left. I wanted 10minutes.. xd
pawn Code:
if(GetPVarInt(playerid, "LastZW") != 0 && (GetTickCount() - GetPVarInt(playerid, "LastZW")) < MINUTES(10))
    {
        new string[128], minutes, seconds = (GetPVarInt(playerid, "LastZW") - GetTickCount()) / 1000 + MINUTES(10);
        minutes = seconds / 60;
        seconds %= 60;
        format(string, sizeof(string), ""COL_LYELL"Musisz poczekać jeszcze: "COL_RED"%dmin %dsek, "COL_LIMON"aby zmienić status.", minutes, seconds);
        return ShowInfo(playerid, "Błąd - status", string);
    }
 
edit://
By the way, some time ago i have used that:
pawn Code:
minuty = PlayerInfo[playerid][pJailTime] / 60;
sekundy = PlayerInfo[playerid][pJailTime] % 60;
 As i've noticed it's preety similar to yours Mademan.
	
 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 1,767
	Threads: 124
	Joined: Mar 2010
	
	
 
	
	
		To the 'seconds' variable? not working. Everytime when i use again this command then it shows me a bigger time, lol.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 1,767
	Threads: 124
	Joined: Mar 2010
	
	
 
	
	
		To use this command only one per 10 minutes.
pawn Code:
// --- Mini-system z/w ---
CMD:testcmd(playerid, params[])
{
    if(GetPVarInt(playerid, "LastZW") != 0 && (GetTickCount() - GetPVarInt(playerid, "LastZW")) < MINUTES(10))
    {
        new string[128], minutes, seconds = (GetTickCount() - GetPVarInt(playerid, "LastZW"));
        //(GetPVarInt(playerid, "LastZW") - GetTickCount()) / 1000 + MINUTES(10);
        minutes = seconds / 60;
        seconds %= 60;
        format(string, sizeof(string), ""COL_LYELL"Musisz poczekać jeszcze: "COL_RED"%dmin %dsek, "COL_LIMON"aby zmienić status.", minutes, seconds);
        return ShowInfo(playerid, "Błąd - status", string);
    }
    
    if(PlayerInfo[playerid][pStatus])
    {
        ShowInfo(playerid, "Błąd", ""COL_RED"Jesteś już na statusie 'zaraz wracam'. "COL_LYELL"Zmień go na 'już jestem'");
        return true;
    }
    new string[64];
    PlayerInfo[playerid][pStatus] = true;
    TogglePlayerControllable(playerid, false);
    SetPVarInt(playerid, "LastZW", GetTickCount());
    GetPlayerHealth(playerid, PlayerInfo[playerid][pStatusHealth]);
    SetPlayerHealth(playerid, 9999.9);
    
    format(string, sizeof(string), ""COL_LBLUE"%s "COL_LYELL"zaraz wraca!", PlayerName(playerid));
    SendClientMessageToAll(-1, string);
    return true;
}
 
	 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 1,767
	Threads: 124
	Joined: Mar 2010
	
	
 
	
	
		9999 min 59 sek. Maybe here?
pawn Code:
if(GetPVarInt(playerid, "LastZW") != 0 && (GetTickCount() - GetPVarInt(playerid, "LastZW")) < MINUTES(10))
 
MINUTES(10)