Hide specific TextDraw with a timer
#1

Hi!

I've got a question:

I have this text draw:

Code:
new Text:JeffersonTextDraw;
When people enter a certain place, it displays the text draw:

Code:
public EnterExit(playerid)
{
	// Salida interior principal del hotel comun
	if(GetPlayerDistanceToPointEx(playerid,2214.3914,-1150.5789,1025.7969) <= 1)
	{
	  SetPlayerInterior(playerid, 0);
	  SetPlayerPos(playerid, 2230.9124,-1158.8999,25.8308);
	  TextDrawHideForPlayer(playerid, JeffersonTextDraw);

    return 1;
	}
	// Entrada exterior principal del hotel comun
	if(GetPlayerDistanceToPointEx(playerid,2233.1624,-1160.1387,25.8906) <= 1)
	{
    SetPlayerInterior(playerid, 15);
	  SetPlayerPos(playerid, 2215.0,-1150.5789 + 1,1025.7969);
  	  TextDrawShowForPlayer(playerid, JeffersonTextDraw);
  	  SetTimerEx("HideDraws", 3000, false, "ii", playerid, JeffersonTextDraw);
    return 1;
	}

    return 1;
}
Now, as you see, I've tried to pass the text draw as a string too, but in game the textdraws wont disappear.

Code:
public HideDraws(playerid, draw)
{
  TextDrawHideForPlayer(playerid, draw);
	return 1;
}
What I'm I doing wrong?

I've done too:

Code:
forward HideDraws(playerid, Text:draw);

	if(GetPlayerDistanceToPointEx(playerid,2233.1624,-1160.1387,25.8906) <= 1)
	{
    SetPlayerInterior(playerid, 15);
	  SetPlayerPos(playerid, 2215.0,-1150.5789 + 1,1025.7969);
  	  TextDrawShowForPlayer(playerid, JeffersonTextDraw);
  	  SetTimerEx("HideDraws", 3000, false, "is", playerid, "JeffersonTextDraw");
    return 1;
	}

public HideDraws(playerid, Text:draw)
{
  TextDrawHideForPlayer(playerid, draw);
	return 1;
}
Reply


Messages In This Thread
Hide specific TextDraw with a timer - by clavador - 22.09.2009, 00:44
Re: Hide specific TextDraw with a timer - by Backwardsman97 - 22.09.2009, 04:45
Re: Hide specific TextDraw with a timer - by clavador - 22.09.2009, 16:57
Re: Hide specific TextDraw with a timer - by clavador - 22.09.2009, 21:14
Re: Hide specific TextDraw with a timer - by clavador - 23.09.2009, 23:12

Forum Jump:


Users browsing this thread: 1 Guest(s)