SA-MP Forums Archive
Help with new line, using dialog... - 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: Help with new line, using dialog... (/showthread.php?tid=595413)



Help with new line, using dialog... - Dokins - 02.12.2015

pawn Код:
format(string1, sizeof(string1), "Crime Information: \n\n%s", inputtext);
                    strcat(string, string1);

Is there a way I can make this display so that when the person types into the dialog, the writing will format itself and do \n so that the text isn't written like this:

.................................................. .................................................. .................................................. ....................

but instead like this:

.................................................. .........
.................................................. .........
.................................................. .........

As in, when the message is displayed from what the user typed in?


Re: Help with new line, using dialog... - Vince - 02.12.2015

PHP код:
for(new pos 70len strlen(string1); pos lenpos += 70)
{
    
strins(string1"\n"pos);




Re: Help with new line, using dialog... - Dokins - 02.12.2015

Ahhh! Thank you Vince, I appreciate it. Also, thank you for the advice a while back on changing to threaded MySQL, it's actually much simpler and cleaner to use. I find that having the results fed into a function actually makes things much more clearer and accessible.


Re: Help with new line, using dialog... - Ahmad45123 - 02.12.2015

This include has some very useful functions about what you want btw: https://sampforum.blast.hk/showthread.php?tid=520734