Dialog message lenght.
#1

So, here is my code:
Code:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Levels - Cena - Komanda"," Level 1 - $100.000 - /nos\r\n Level 2 - $200.000 - /flip\r\n Level 3 - $300.000 - /count\r\nLevel 4 - $400.000 - /rims\r\nLevel 5 - $500.000 - /savepos\r\nLevel 6 - $600.000 - /ramps\r\nLevel 7 - $700.000 - /afon, /afoff\r\nLevel 8 - $800.000 - /agates\r\nLevel 9 - $900.000 - /lgates, /l2gates\r\nLevel 10 - $1.000.000 - /tagates\r\nLevel 11 - $1.100.000 - /a2gates\r\nLevel 12 - $1.200.000 - /tlgates\r\nLevel 13 - $1.300.000 - /mgates\r\nLevel 14 - $1.400.000 - /a3gatees\r\nLevel 15 - $1.500.000 - /bgates\r\nLevel 16 - $1.600.000 - /ssgates\r\nLevel 17 - $1.700.000 - /mycar","Labi","");
And for some reason i get this error:
Code:
C:\Users\Shetch\Desktop\samp.knot.lv\gamemodes\KnotGM.pwn(299) : error 075: input line too long (after substitutions)
C:\Users\Shetch\Desktop\samp.knot.lv\gamemodes\KnotGM.pwn(300) : error 037: invalid string (possibly non-terminated string)
C:\Users\Shetch\Desktop\samp.knot.lv\gamemodes\KnotGM.pwn(300) : error 017: undefined symbol "Level"
C:\Users\Shetch\Desktop\samp.knot.lv\gamemodes\KnotGM.pwn(300) : error 029: invalid expression, assumed zero
C:\Users\Shetch\Desktop\samp.knot.lv\gamemodes\KnotGM.pwn(300) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
How can i fix therese errors? Please help me..
Reply
#2

I really need help, please.
Reply
#3

pawn Code:
new verylongtext[1024] = "part 1 of the very long text";
strcat(verylongtext, "and this is part 2 of the text that will be appended to part 1.");
Reply
#4

On top:

pawn Code:
new LongDialog [1024];
OnGameModeInit

pawn Code:
SetUpMyText();
Example cmd for long dialog:

pawn Code:
CMD:longdialog(playerid, params[])
{
    ShowPlayerDialog(playerid,69333, DIALOG_STYLE_MSGBOX,"Long Dialog.",LongDialog, "Okay", "Exit");
    return 1;
}
And anywhere in script:

pawn Code:
SetUpMyText()
{
    LongDialog = "Bla bla bla \n";
    strcat(LongDialog, "Bla bla.\n");
    strcat(LongDialog, "Bla bla.\n");
    return 1;
}
You can go on with long dialogs on strcat.

Thanks, Please +rep if i helped.
Reply
#5

Thank you both.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)