22.09.2009, 00:44
Hi!
I've got a question:
I have this text draw:
When people enter a certain place, it displays the text draw:
Now, as you see, I've tried to pass the text draw as a string too, but in game the textdraws wont disappear.
What I'm I doing wrong?
I've done too:
I've got a question:
I have this text draw:
Code:
new Text:JeffersonTextDraw;
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; }
Code:
public HideDraws(playerid, draw) { TextDrawHideForPlayer(playerid, draw); return 1; }
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; }