SA-MP Forums Archive
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)
+--- Thread: input line too long (/showthread.php?tid=373764)



input line too long - kbalor - 31.08.2012

So how do I make it short?

pawn Код:
case 10:
                {
                    ShowPlayerDialog(playerid, DIALOG_HOUSES1, DIALOG_STYLE_LIST, "{C9BE62}Houses", "Johnsons House (/cj) \nMadd Dogg's Mansion (/mansion) \nAbandones AC tower (/at) \nDenise Bedroom (/denise) \nRyder's House (/ryder) \nBrothel House (/brothel) \nTorreno's Ranch (/torreno) \nJefferson's Motel (/jeff) \nMillie's Bedroom (/millie) \nMichelle Love Nest (/mich) \nSafe House (/safe) \nSafe House 2 (/safe2) \nUnused Safe House (/unsafe) \nBig Smoke Palace (/bigsmoke) \nColonel Furhbers (/colonel)", "Choose", "Back");
                }



Re: input line too long - HuSs3n - 31.08.2012

pawn Код:
new str[512];
strcat(str,"Johnsons House (/cj) \nMadd Dogg's Mansion (/mansion) \nAbandones AC tower (/at) \nDenise Bedroom (/denise)");
strcat(str,"\nRyder's House (/ryder) \nBrothel House (/brothel) \nTorreno's Ranch (/torreno) \nJefferson's Motel (/jeff) \nMillie's Bedroom (/millie) \nMichelle Love Nest (/mich)");
strcat(str,"\nSafe House (/safe) \nSafe House 2 (/safe2) \nUnused Safe House (/unsafe)");
strcat(str,"\nBig Smoke Palace (/bigsmoke) \nColonel Furhbers (/colonel)");

ShowPlayerDialog(playerid, DIALOG_HOUSES1, DIALOG_STYLE_LIST, str, "Choose", "Back");



Re: input line too long - kbalor - 31.08.2012

Quote:
Originally Posted by HuSs3n
Посмотреть сообщение
pawn Код:
new str[512];
strcat(str,"Johnsons House (/cj) \nMadd Dogg's Mansion (/mansion) \nAbandones AC tower (/at) \nDenise Bedroom (/denise)");
strcat(str,"\nRyder's House (/ryder) \nBrothel House (/brothel) \nTorreno's Ranch (/torreno) \nJefferson's Motel (/jeff) \nMillie's Bedroom (/millie) \nMichelle Love Nest (/mich)");
strcat(str,"\nSafe House (/safe) \nSafe House 2 (/safe2) \nUnused Safe House (/unsafe)");
strcat(str,"\nBig Smoke Palace (/bigsmoke) \nColonel Furhbers (/colonel)");

ShowPlayerDialog(playerid, DIALOG_HOUSES1, DIALOG_STYLE_LIST, str, "Choose", "Back");
case 10:
{
new str[512];
strcat(str,"Johnsons House (/cj) \nMadd Dogg's Mansion (/mansion) \nAbandones AC tower (/at) \nDenise Bedroom (/denise)");
strcat(str,"\nRyder's House (/ryder) \nBrothel House (/brothel) \nTorreno's Ranch (/torreno) \nJefferson's Motel (/jeff) \nMillie's Bedroom (/millie) \nMichelle Love Nest (/mich)");
strcat(str,"\nSafe House (/safe) \nSafe House 2 (/safe2) \nUnused Safe House (/unsafe)");
strcat(str,"\nBig Smoke Palace (/bigsmoke) \nColonel Furhbers (/colonel)");
ShowPlayerDialog(playerid, DIALOG_HOUSES1, DIALOG_STYLE_LIST, str, "Choose", "Back");
}
It say's warning 202: number of arguments does not match definition


Re: input line too long - HuSs3n - 31.08.2012

this will fix it
pawn Код:
ShowPlayerDialog(playerid, DIALOG_HOUSES1, DIALOG_STYLE_LIST,"{C9BE62}Houses", str, "Choose", "Back");



Re: input line too long - kbalor - 31.08.2012

Quote:
Originally Posted by HuSs3n
Посмотреть сообщение
this will fix it
pawn Код:
ShowPlayerDialog(playerid, DIALOG_HOUSES1, DIALOG_STYLE_LIST,"{C9BE62}Houses", str, "Choose", "Back");
Working nice man! thanks !!!


AW: input line too long - Nero_3D - 31.08.2012

Made a little funciton, maybe you like it