Input too long
#10

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)
Reply


Messages In This Thread
Input too long - by Typhome - 19.09.2010, 17:44
Re: Input too long - by DeathOnaStick - 19.09.2010, 17:48
Re: Input too long - by Vince - 19.09.2010, 18:03
Re: Input too long - by Typhome - 19.09.2010, 18:15
Re: Input too long - by Vince - 19.09.2010, 18:20
Re: Input too long - by [L3th4l] - 19.09.2010, 18:35
Re: Input too long - by Typhome - 19.09.2010, 18:45
Re: Input too long - by [L3th4l] - 19.09.2010, 18:58
Re: Input too long - by Typhome - 19.09.2010, 18:59
Re: Input too long - by Mikkel_Pedersen - 22.09.2010, 16:50

Forum Jump:


Users browsing this thread: 1 Guest(s)