CountDown Problem
#1

Hello im trying to make a radius countdown but why it doest show up?
here's the code

Код:
forward Three(playerid, params);
public Three(playerid, params)
{
    new string[256];
 	format(string, sizeof(string), "[Countdown]: 3", params);
	ProxDetector(60.0, playerid, string,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
	return 1;
}

forward Two(playerid, params);
public Two(playerid, params)
{
    new string[256];
	format(string, sizeof(string), "[Countdown]: 2", params);
	ProxDetector(60.0, playerid, string,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
	return 1;
}

forward One(playerid, params);
public One(playerid, params)
{
    new string[256];
 	format(string, sizeof(string), "[Countdown]: 1", params);
	ProxDetector(60.0, playerid, string,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
 	return 1;
}

forward GoGoGo(playerid, params);
public GoGoGo(playerid, params)
{
    new string[256];
 	format(string, sizeof(string), "[Countdown]: Go Go Go!", params);
	ProxDetector(60.0, playerid, string,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE,COLOR_LIGHTBLUE);
 	return 1;
}

======

CMD:countdown(playerid, params[])
{
		SetTimer("Three", 1000, 0);
		SetTimer("Two", 2000, 0);
		SetTimer("One", 3000, 0);
		SetTimer("GoGoGo", 4000, 0);
        return 1;
}
Reply
#2

You want it to be probably a TextDraw right? the problem is that you didn't even create a TextDraw for it.
Create a TextDraw and then "TextDrawShowForAll"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)