SA-MP Forums Archive
Input Line Too Long ERROR (HELP ME!!!) - 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)
+--- Thread: Input Line Too Long ERROR (HELP ME!!!) (/showthread.php?tid=369972)



Input Line Too Long ERROR (HELP ME!!!) - BlackAtom - 18.08.2012

Hi! I'm making a in-game music player. I'm using the ShowPlayerDialog function. The entire code works very good, as it should do, but now I got an error: "Input Line Too Long". I got this other times, and is so annoying because it limits my "fantasy" xDD. So, THERE IS A WAY TO AVOID THIS ERROR ONCE FOR ALL

Thanks in advance )


Re: Input Line Too Long ERROR (HELP ME!!!) - iToast - 18.08.2012

Quote:
Originally Posted by BlackAtom
Посмотреть сообщение
Hi! I'm making a in-game music player. I'm using the ShowPlayerDialog function. The entire code works very good, as it should do, but now I got an error: "Input Line Too Long". I got this other times, and is so annoying because it limits my "fantasy" xDD. So, THERE IS A WAY TO AVOID THIS ERROR ONCE FOR ALL

Thanks in advance )
if(strlen(*input*) > MAX_STRING)
{
// no.
}else{
// yes.
}


Re: Input Line Too Long ERROR (HELP ME!!!) - Sandiel - 18.08.2012

Is it a list style dialog or what?


Re: Input Line Too Long ERROR (HELP ME!!!) - kbalor - 18.08.2012

show the script for that. But its okay if not.

Try to use this...

pawn Код:
if(strcmp(cmd,"/yourcommand",true)==0)
    {
     new string[300]; // it depends on what you add...
        strcat(string,"Put something here");
        strcat(string,"Same with this");
        strcat(string,"With this");
        strcat(string,"So on");
        strcat(string,"And so on");
        strcat(string,"again");
        ShowPlayerDialog(playerid, defineyourdailog, DIALOG_STYLE_LIST, "Title", string, "Choose", "Cancel");
        return 1;



Re: Input Line Too Long ERROR (HELP ME!!!) - BlackAtom - 18.08.2012

kbalor you right!!! THANK YOU!!