Textdraw Issues, Arranging the textdraw
#1

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.
Reply
#2

Use strcat

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

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)