SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 12/07/2018, 02:33 PM   #1
SlayerHodge
Little Clucker
 
Join Date: Jun 2016
Posts: 42
Reputation: 0
Default Textdraw Issues, Arranging the textdraw

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.
__________________
SlayerHodge is offline   Reply With Quote
Old 12/07/2018, 06:50 PM   #2
ItsRobinson
Big Clucker
 
ItsRobinson's Avatar
 
Join Date: Sep 2017
Posts: 71
Reputation: 9
Default Re: Textdraw Issues, Arranging the textdraw

Use strcat

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


ItsRobinson is offline   Reply With Quote
Old 19/07/2018, 12:49 AM   #3
SlayerHodge
Little Clucker
 
Join Date: Jun 2016
Posts: 42
Reputation: 0
Default Re: Textdraw Issues, Arranging the textdraw

Thanks man, i was just thinking of something similar, but didnot know how to transpose. Strcat is in A_samp?
__________________
SlayerHodge is offline   Reply With Quote
Old 20/07/2018, 10:22 AM   #4
AzaMx
Huge Clucker
 
Join Date: Aug 2014
Location: moon
Posts: 298
Reputation: 61
Default Re: Textdraw Issues, Arranging the textdraw

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Textdraw issues Mattakil Scripting Help 4 29/09/2013 05:09 PM
Textdraw issues Jassey Scripting Help 5 03/10/2012 08:52 AM
Textdraw issues GamingTurf Scripting Help 6 27/12/2011 09:48 AM
[Tutorial] TextDraw streaming/arranging Voldemort Tutorials 6 25/02/2011 12:12 PM
Textdraw issues MWF2 Help Archive 4 09/05/2010 03:50 PM


All times are GMT. The time now is 06:42 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.