Help with dialog (dialog its too long)
#1

how i can make with this
PHP код:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Notice","You connected to the server","Close",""); 
i was make it but i forgot how it was done
Reply
#2

It makes no sense what you say. What do you mean?
Reply
#3

ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"N otice","MY TEXT HERE ITS TOO LONG","Close","");
Reply
#4

i think he means he is getting a warning that his text is to long or he cant see all the text in the dialog.


Код:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"N otice","You connected /n to the server","Close","");
Not 100% sure that is right but the /n should make it onto two lines so you can see it all if that is your problem.
Reply
#5

Why is it to long? Does it give an error when compiling, or..?
Reply
#6

yes its giving me error: ..... it's too long
Reply
#7

Quote:
Originally Posted by boyan96
Посмотреть сообщение
yes its giving me error: ..... it's too long
Send you're errors?
Reply
#8

use \n to make line tap.
Reply
#9

I'm sure you got the " Input line too long after substitution " or whatever it is. Here is the solution:

pawn Код:
new dt[1024];

strcat(dt,"TEXT HERE");
strcat(dt,"MORE TEXT HERE");
strcat(dt,"EVEN MORE TEXT HERE");

ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX, "Notice",dt,"Close","");
https://sampwiki.blast.hk/wiki/Strcat
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)