Textdraw help
#1

Hello recently I've created a couple of textdraw's and now I need them to disappear when the user has registerd/logged in I used "TextDrawHideForPlayer(playerid,textdraw);" but I this error "(249) : error 017: undefined symbol "textdraw""
Line 249 is "TextDrawHideForPlayer(playerid,textdraw);"
Reply
#2

You need to assign a variable to your textdraw(s). To do this, you'll need to first declare the variable towards the top of your script (or somewhere outside of a function).

pawn Код:
new Text:textDrawNameHere;
Then you'll need to find the line for your text draw that has "TextDrawCreate(...)" and then add the following:

pawn Код:
textDrawNameHere =
Your line should now look like this, somewhat:

pawn Код:
textDrawNameHere = TextDrawCreate(/*Values go here*/);
Now that you've completed all of that, you can THEN use TextDrawDestroy and use "textDrawNameHere" in place of "textdraw".
Reply
#3

Im using zamaroth's textdraw editor so I already have these
Код:
Textdraw0 = TextDrawCreate(646.000000, 153.000000, "txt1");
Reply
#4

Okay, then use "Textdraw0" instead of "textDrawNameHere" and don't worry about declaring the variable.
Reply
#5

I am I have everything set up but I only get errors when I put this
Код:
TextDrawHideForPlayer(playerid,textdraw)
under OnPlayerSpawn which I guess it removes it when the player spawns so can it be something else a variable or something?
Reply
#6

Can anyone please help me with this?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)