SA-MP Forums Archive
Textdraw Issues, Arranging the textdraw - 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 Issues, Arranging the textdraw (/showthread.php?tid=656301)



Textdraw Issues, Arranging the textdraw - SlayerHodge - 12.07.2018

Hello, I was woundering how to use a textdraw to continuously add a new line.
For example

new TextefaultLine,NewUserInputTEXT;

DefaultLine = TextDrawCreate(455.000000, 170.000000, "REMARKS");
format(NewUserInputTEXT, sizeof(NewUserInputTEXT), "\n%s", input);
TextDrawSetString(Defaultline, NewUserInputTEXT);


output: REMARKS
Hello there
Sad
Fam


the output is what i wanted to see in the textdraw, but when i am trying i am only getting 1 user's input in there, only one input.

please assist.


Re: Textdraw Issues, Arranging the textdraw - ItsRobinson - 12.07.2018

Use strcat

PHP код:
DefaultLine TextDrawCreate(455.000000170.000000"REMARKS");
new 
substring[64];
format(substringsizeof(substring), "\n%s"input);
strcat(NewUserInputTextsubstringsizeof(NewUserInputText));
TextDrawSetString(DefaultlineNewUserInputTEXT); 



Re: Textdraw Issues, Arranging the textdraw - SlayerHodge - 19.07.2018

Thanks man, i was just thinking of something similar, but didnot know how to transpose. Strcat is in A_samp?


Re: Textdraw Issues, Arranging the textdraw - AzaMx - 20.07.2018

I don't understand what do you mean by strcat is in a_samp (or maybe).