Quote:
Originally Posted by [L3th4l]
Try using this:
pawn Код:
new LongString[300] = "This is the message that you will be receiving, you can also attach even more\n"); strcat(LongString, "Messages by adding a '\'n at the end of the sentence like right now\n"); strcat(LongString, "You can add as many text as you want, but this is the only way i can think\n"); strcat(LongString, "of to create this loooooooooooooooooooooooooooooooooooooooooong msgs"); ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_MSGBOX, "Test", LongString, "Ok", "Close");
If you are going to use more text, increase the array size
|
OMG thanks a lot for showing this. Today i tried to make a dialog list with all weapon names and their id. And i knew that it would be too long in ShowPlayerDialog. So i made a weapons[300] = "text here"; but it still failed, so searched the forum, and found this great thread that answered my question. So thanks a lot for it.
PS: Wanna state that i also made the string size of 'weapons' bigger, but still got errors. Also first time i use 'strcat' Oo (never really needed it)