Help with new line, using dialog...
#1

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

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

Reply
#3

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)