SA-MP Forums Archive
Textdraw doesn't show up - 0.3d - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Textdraw doesn't show up - 0.3d (/showthread.php?tid=298851)



Textdraw doesn't show up - 0.3d - Homerman - 22.11.2011

Simply, I have this TextDraw in my script and it doesn't show up. It is defind normally in OnFilterScriptInit
Код:
lol= TextDrawCreate(547, 40, "~b~[lol]");
	TextDrawLetterSize(lol, 0.5, 1.5); TextDrawFont(lol, 1);
 	TextDrawSetOutline(lol, 1);
however when I show it to player
Код:
TextDrawShowForPlayer(playerid, lol);
it doesn't want to show up. Any ideas?


Re: Textdraw doesn't show up - 0.3d - JamesC - 22.11.2011

Make sure you're using the correct type of global variable.

pawn Код:
new Text:lol;
Needs to be declared outside any callbacks or functions.


Re: Textdraw doesn't show up - 0.3d - Homerman - 22.11.2011

Of course I got it defined...
Код:
new Text:lol= Text:INVALID_TEXT_DRAW;