SA-MP Forums Archive
how much? - 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: how much? (/showthread.php?tid=348233)



how much? - speed258 - 04.06.2012

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.


Re: how much? - doreto - 04.06.2012

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;
}



Re: how much? - speed258 - 04.06.2012

but i format message what i need to do?


Re: how much? - speed258 - 05.06.2012

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?


Re: how much? - Firo - 05.06.2012

Can we see the lines or we need to guess them?


Re: how much? - speed258 - 05.06.2012

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


Re: how much? - Firo - 05.06.2012

Why you used 600? try lower it.


Re: how much? - speed258 - 05.06.2012

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


Re: how much? - Firo - 05.06.2012

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.


Re: how much? - speed258 - 05.06.2012

and where i get my params you just delete