SA-MP Forums Archive
Textdraws - 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: Textdraws (/showthread.php?tid=654160)



Textdraws - Tene - 22.05.2018

Hello,
I am new to scripting and i want to know if there is some tutorial how to change textdraws (remove old ones put new ones,textdrawshowforplayer etc..?)
Thanks


Re: Textdraws - SeanDenZYR - 22.05.2018

You can replace Textdraw "Text" only. The letters/text written in the textdraw. You can do this via

pawn Код:
TextDrawSetString(tdid, text);



Re: Textdraws - GTLS - 22.05.2018

Its not hard to search for Tutorials for textdraws. Come on, do it your self.


Re: Textdraws - Tene - 22.05.2018

Quote:
Originally Posted by GTLS
Посмотреть сообщение
Its not hard to search for Tutorials for textdraws. Come on, do it your self.
I searched on this forum but i could not find any.
Please link one if u have


Re: Textdraws - Kraeror - 22.05.2018

Quote:
Originally Posted by Tene
Посмотреть сообщение
I searched on this forum but i could not find any.
Please link one if u have
Use the function TextDrawSetString();
The parameters are:
1. The name of the textdraw's variable
2. The new text that you want to change


Re: Textdraws - Lokii - 22.05.2018

https://sampwiki.blast.hk/wiki/Textdraw


Re: Textdraws - TroS - 22.05.2018

Here is a tutorial:
-Removing the old ones by this code:

TextDrawDestroy(Put your TextDraw name here);



- Adding a new one:


CreatePlayerTextDraw(playerid,Float, Float:y, text[]);

Here is an example of adding a new textdraw:

TextDrawCreate(320.000000, 180.000000, "Welcome");


Re: Textdraws - Tene - 22.05.2018

Quote:
Originally Posted by Kraeror
Посмотреть сообщение
Use the function TextDrawSetString();
The parameters are:
1. The name of the textdraw's variable
2. The new text that you want to change
I dont want to change only text i want to change whole textdraw


Re: Textdraws - TroS - 22.05.2018

Quote:
Originally Posted by Tene
Посмотреть сообщение
I dont want to change only text i want to change whole textdraw
Try what I have told you to do, it will work.


Re: Textdraws - GTLS - 23.05.2018

Quote:
Originally Posted by Tene
Посмотреть сообщение
I searched on this forum but i could not find any.
Please link one if u have
Stop lazing around. Search, "SAMP TextDraw Tutorials" on your preferred search engine. I just did it and found many tutorials.