Input Line Too Long..??
#1

When i add a dialog box and i get this error-
pawn Код:
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\gamemodes\freeroam.pwn(2272) : error 075: input line too long (after substitutions)
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\gamemodes\freeroam.pwn(2273) : error 037: invalid string (possibly non-terminated string)
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\gamemodes\freeroam.pwn(2273) : error 029: invalid expression, assumed zero
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\gamemodes\freeroam.pwn(2273) : error 017: undefined symbol "n"
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\gamemodes\freeroam.pwn(2273) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
I know its because of the line i have inserted is too long ...but i cant remove it because its a dialog showing all my teles.So how can i resolve this...!

Help!

Thanks For Your Time !

Regards,
Ronaldo_raul™
Reply
#2

pawn Код:
new VeryLongText[1024] = "bladiebla long text for first paragraph";
strcat(VeryLongText, "and even more text that will be added to the end");
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
pawn Код:
new VeryLongText[1024] = "bladiebla long text for first paragraph";
strcat(VeryLongText, "and even more text that will be added to the end");
But i want to create a dialog box also..how can i do that..?>?
Reply
#4

pawn Код:
new VeryLongText[1024] = "bladiebla long text for first paragraph";
strcat(VeryLongText, "and even more text that will be added to the end");
strcat(VeryLongText, "more text");
strcat(VeryLongText, "more text");
strcat(VeryLongText, "more text");
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Caption", VeryLongText, "OK", "Cancel");
Reply
#5

Whenever you wanna add some text to a string, use strcat..

pawn Код:
new EpicTextTime[1024] = " Theres a lotta Text in here.. Am I right haters?! ";
strcat( EpicTextTime, "More Text..!", sizeof(EpicTextTime) );
strcat( EpicTextTime, "More Text..!", sizeof(EpicTextTime) );
strcat( EpicTextTime, "More Text..!", sizeof(EpicTextTime) );
strcat( EpicTextTime, "See what I'm talking about?", sizeof(EpicTextTime) );
ShowPlayerDialog(playerid, DIALOG_EPIC_TEXT, DIALOG_STYLE_MSGBOX, "Epic Text Time:", EpicTextTime, "Eat!", "Add!");
Style: [ame="http://www.youtube.com/watch?v=wZDv9pgHp8Q&feature=morshidul"]Epic Meal Time[/ame]
Reply
#6

Quote:
Originally Posted by iPLEOMAX
Посмотреть сообщение
Whenever you wanna add some text to a string, use strcat..

pawn Код:
new EpicTextTime[1024] = " Theres a lotta Text in here.. Am I right haters?! ";
strcat( EpicTextTime, "More Text..!", sizeof(EpicTextTime) );
strcat( EpicTextTime, "More Text..!", sizeof(EpicTextTime) );
strcat( EpicTextTime, "More Text..!", sizeof(EpicTextTime) );
strcat( EpicTextTime, "See what I'm talking about?", sizeof(EpicTextTime) );
ShowPlayerDialog(playerid, DIALOG_EPIC_TEXT, DIALOG_STYLE_MSGBOX, "Epic Text Time:", EpicTextTime, "Eat!", "Add!");
Style: Epic Meal Time
lol at video...! Thanks i try it..!
Reply
#7

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
pawn Код:
new VeryLongText[1024] = "bladiebla long text for first paragraph";
strcat(VeryLongText, "and even more text that will be added to the end");
strcat(VeryLongText, "more text");
strcat(VeryLongText, "more text");
strcat(VeryLongText, "more text");
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Caption", VeryLongText, "OK", "Cancel");
Thanks ..will give it a try!
Reply
#8

And yeah can i use \n in this line
pawn Код:
new VeryLongText[1024] = "bladiebla long text for first paragraph";
I mean -
pawn Код:
new VeryLongText[1024] = "\n/{FFF30F}skatepark - {FFFFFF}Skate Park Stunt\n/Stadium - Stadium Stunts";
Reply
#9

Yes you can
Reply
#10

Quote:
Originally Posted by [MG]Dimi
Посмотреть сообщение
Yes you can
k... thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)