Input Line Too Long..?? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Input Line Too Long..?? (
/showthread.php?tid=274318)
Input Line Too Long..?? -
Ronaldo_raul™ - 05.08.2011
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™
Re: Input Line Too Long..?? -
Vince - 05.08.2011
pawn Код:
new VeryLongText[1024] = "bladiebla long text for first paragraph";
strcat(VeryLongText, "and even more text that will be added to the end");
Re: Input Line Too Long..?? -
Ronaldo_raul™ - 05.08.2011
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..?>?
Re: Input Line Too Long..?? -
MadeMan - 05.08.2011
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");
Re: Input Line Too Long..?? -
iPLEOMAX - 05.08.2011
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]
Re: Input Line Too Long..?? -
Ronaldo_raul™ - 06.08.2011
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..!
Re: Input Line Too Long..?? -
Ronaldo_raul™ - 06.08.2011
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!
Re: Input Line Too Long..?? -
Ronaldo_raul™ - 06.08.2011
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";
Re: Input Line Too Long..?? -
[MG]Dimi - 06.08.2011
Yes you can
Re: Input Line Too Long..?? -
Ronaldo_raul™ - 06.08.2011
Quote:
Originally Posted by [MG]Dimi
Yes you can
|
k... thanks!