[Ajuda]CountDown
#1

ae galera eu to fazendo um gm com gz dominavel, ai eu botei pra aparecer o tempo q resta para o dominio com um TextDraw sendo q da um bug q quando comessa a dominar fica asim:
Quote:

Tempo Restante 48

ai so fica nisso e nгo aparece o tempo.

Codigo:

pawn Код:
new Count = 181;
new CountText[181][181] ={
"3:00",
"2:59",
"2:58",
"2:57",
"2:56",
"2:55",
"2:54",
"2:53",
"2:52",
"2:51",
"2:50",
"2:49",
"2:48",
"2:47",
"2:46",
"2:45",
"2:44",
"2:43",
"2:42",
"2:41",
"2:40",
"2:39",
"2:38",
"2:37",
"2:36",
"2:35",
"2:34",
"2:33",
"2:32",
"2:31",
"2:30",
"2:29",
"2:28",
"2:27",
"2:26",
"2:25",
"2:24",
"2:23",
"2:22",
"2:21",
"2:20",
"2:19",
"2:18",
"2:17",
"2:16",
"2:15",
"2:14",
"2:13",
"2:12",
"2:11",
"2:10",
"2:09",
"2:08",
"2:07",
"2:06",
"2:05",
"2:04",
"2:03",
"2:02",
"2:01",
"2:00",
"1:59",
"1:58",
"1:57",
"1:56",
"1:55",
"1:54",
"1:53",
"1:52",
"1:51",
"1:50",
"1:49",
"1:48",
"1:47",
"1:46",
"1:45",
"1:44",
"1:43",
"1:42",
"1:41",
"1:40",
"1:39",
"1:38",
"1:37",
"1:36",
"1:35",
"1:34",
"1:33",
"1:32",
"1:31",
"1:30",
"1:29",
"1:28",
"1:27",
"1:26",
"1:25",
"1:24",
"1:23",
"1:22",
"1:21",
"1:20",
"1:19",
"1:18",
"1:17",
"1:16",
"1:15",
"1:14",
"1:13",
"1:12",
"1:11",
"1:10",
"1:09",
"1:08",
"1:07",
"1:06",
"1:05",
"1:04",
"1:03",
"1:02",
"1:01",
"1:00",
"0:59",
"0:58",
"0:57",
"0:56",
"0:55",
"0:54",
"0:53",
"0:52",
"0:51",
"0:50",
"0:49",
"0:48",
"0:47",
"0:46",
"0:45",
"0:44",
"0:43",
"0:42",
"0:41",
"0:40",
"0:39",
"0:38",
"0:37",
"0:36",
"0:35",
"0:34",
"0:33",
"0:32",
"0:31",
"0:30",
"0:29",
"0:28",
"0:27",
"0:26",
"0:25",
"0:24",
"0:23",
"0:22",
"0:21",
"0:20",
"0:19",
"0:18",
"0:17",
"0:16",
"0:15",
"0:14",
"0:13",
"0:12",
"0:11",
"0:10",
"0:09",
"0:08",
"0:07",
"0:06",
"0:05",
"0:04",
"0:03",
"0:02",
"0:01",
"0:00"
};

public CountDown(playerid){
  if (Count > 0){
  #define COLOR_AQUA    0xF0F8FFAA
  //GameTextForAll(CountText[Count-1], 5000, 3);
  Count--;
  SetTimer("CountDown", 1000, 0);
  new string[256];
  format(string, sizeof string, "~b~Tempo Restante: ~w~ %d", CountText[Count-1]);
  TextDrawSetString(Textdraw8, string);
  TextDrawShowForPlayer(playerid, Text:Textdraw8);
  }
  else{
  new pName[30],string[30];
  format(string, 256, "O ID: %d dominou uma Gang Zona",playerid, pName);
  SendClientMessageToAll(COLOR_AQUA ,string);
  Count = 181;
  }
  return 1;
}

//no OnGameModeInit

Textdraw8 = TextDrawCreate(20.000000, 319.000000,"%s",CountText[Count-1]);
TextDrawBackgroundColor(Textdraw8, 255);
TextDrawFont(Textdraw8, 1);
TextDrawLetterSize(Textdraw8, 0.500000, 1.000000);
TextDrawColor(Textdraw8, -1);
TextDrawSetOutline(Textdraw8, 0);
TextDrawSetProportional(Textdraw8, 1);
TextDrawSetShadow(Textdraw8, 1);
ajuda ae galera.
Reply


Messages In This Thread
[Ajuda]CountDown - by judson diogo - 15.04.2010, 16:10
Re: [Ajuda]CountDown - by Brunin_OwnZ - 15.04.2010, 16:34
Re: [Ajuda]CountDown - by judson diogo - 15.04.2010, 16:53
Re: [Ajuda]CountDown - by Brunin_OwnZ - 15.04.2010, 19:52
Re: [Ajuda]CountDown - by judson diogo - 15.04.2010, 19:56
Re: [Ajuda]CountDown - by russo666 - 15.04.2010, 20:02
Re: [Ajuda]CountDown - by Brunin_OwnZ - 15.04.2010, 20:04
Re: [Ajuda]CountDown - by ipsBruno - 15.04.2010, 21:56
Re: [Ajuda]CountDown - by judson diogo - 15.04.2010, 22:29
Re: [Ajuda]CountDown - by judson diogo - 16.04.2010, 14:48

Forum Jump:


Users browsing this thread: 1 Guest(s)