how much?
#1

how much string i can use in dialog? i used about 600 and pawno says: error 075: input line too long (after substitutions) but i want to make one dialog with 600 string is this possilble? thanks.
Reply
#2

yes but you cant do all in one line you have to use strcat like here example below


pawn Код:
CMD:cmds(playerid,params[])
{
    new read_cmds [900];
    strcat( read_cmds, "post here\r\n");
    strcat( read_cmds, "post here1\r\n");
    strcat( read_cmds, "post here2\r\n");
    strcat( read_cmds, "post here3\r\n");
    ShowPlayerDialog(playerid, 10001, DIALOG_STYLE_LIST, "List of all commands",read_cmds, "OK","");
    return true;
}
Reply
#3

but i format message what i need to do?
Reply
#4

no i format about 600 strings which doing another function like a get player name, some numbers, but problem is i want i one MSGBOX dialog to set this formated message but pawno says: error 075: input line too long (after substitutions) so any ideas?
Reply
#5

Can we see the lines or we need to guess them?
Reply
#6

here:
Quote:

{
new msg[600];
format(msg,sizeof(msg),"{FFFFFF}Owner: {EBFF00}%s\n{FFFFFF}Name: {EBFF00}%s\n{F50000}---Pays---\n{FFFFFF}Expensive more that: {EBFF00}%2f {FFFFFF}G\n{FFFFFF}Lover that: {EBFF00}%2f {FFFFFF}TD\n{FFFFFF}Green Acres: {EBFF00}%2f {FFFFFF}He\n{FFFFFF}Junior time: {EBFF00}%2f {FFFFFF}YXZ\n{F50000}---Overview---\n{FFFFFF}Cash: {EBFF00}%2f\n{FFFFFF}Bank: {EBFF00}%2f\n{FFFFFF}Home: {EBFF00}%2f\n{FFFFFF}Hotel: {EBFF00}%2f",
// owner,names,exs,lt,ga,jt,cs,bk,ffffftttteee,lostho tel);
ShowPlayerDialog(playerid,7001,DIALOG_STYLE_MSGBOX ,"{F50000}INFO",msg,""OK","");
return 1;
}

so any ideas
Reply
#7

Why you used 600? try lower it.
Reply
#8

but i need nicer look and i need this format to be in one dialog so any ideas?
Reply
#9

Quote:
Originally Posted by speed258
Посмотреть сообщение
but i need nicer look and i need this format to be in one dialog so any ideas?
pawn Код:
{
new msg[600];
format(msg,sizeof(msg),"{FFFFFF}Owner: {EBFF00}%s\n{FFFFFF}Name: {EBFF00}%s\n{F50000}---Pays---\n{FFFFFF}Expensive more that: {EBFF00}%2f {FFFFFF}G\n{FFFFFF}Lover that: {EBFF00}%2f {FFFFFF}TD\n{FFFFFF}Green Acres: {EBFF00}%2f {FFFFFF}He\n{FFFFFF}Junior time: {EBFF00}%2f {FFFFFF}YXZ\n{F50000}---Overview---\n{FFFFFF}Cash: {EBFF00}%2f\n{FFFFFF}Bank: {EBFF00}%2f\n{FFFFFF}Home: {EBFF00}%2f\n{FFFFFF}Hotel: {EBFF00}%2f");
ShowPlayerDialog(playerid,7001,DIALOG_STYLE_MSGBOX ,"{F50000}INFO",msg,""OK","");
return 1;
}
Try now.
Reply
#10

and where i get my params you just delete
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)