input line too long
#1

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

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");
Reply
#3

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
Reply
#4

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

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 !!!
Reply
#6

Made a little funciton, maybe you like it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)