20.01.2014, 16:48
Hi all...
I have made a countdown format for timer of 15 minutes, in the game it looks:
15 minutes left
14 minutes left
13 minutes left
etc....
I want to make it with seconds together:
14:59 minutes left
14:58 minutes left
14:57 minutes left
14:56 minutes left
till zero etc...
Codes:
My defines:
On my command:
Public of timer:
Thanks in advance
I have made a countdown format for timer of 15 minutes, in the game it looks:
15 minutes left
14 minutes left
13 minutes left
etc....
I want to make it with seconds together:
14:59 minutes left
14:58 minutes left
14:57 minutes left
14:56 minutes left
till zero etc...
Codes:
My defines:
Код:
new MinutesleftCD[MAX_PLAYERS]; new Minutesleft[MAX_PLAYERS];
Код:
MinutesleftCD[playerid] = SetTimerEx("MinutesCD", 500, false, "d", playerid); Minutesleft[playerid] = 16;
Код:
forward MinutesCD(playerid); public MinutesCD(playerid) { new string[128]; if(RobberyStatus[playerid] == 3) { Minutesleft[playerid] --; format(string,sizeof(string),"~y~%d minutes left", Minutesleft[playerid]); GameTextForPlayer(playerid, string, 5000, 1); SetTimerEx("MinutesCD", 60000, false, "d", playerid); } return 1; }