Input Line Too Long ERROR (HELP ME!!!)
#1

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

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.
}
Reply
#3

Is it a list style dialog or what?
Reply
#4

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;
Reply
#5

kbalor you right!!! THANK YOU!!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)