03.12.2013, 21:15
(
Последний раз редактировалось AIped; 03.12.2013 в 21:31.
Причина: failed in [pawn]
)
Hello there,
I made this simple command that shows a clientmessage with all companynames.
Since there are very much of them and i want to add them simply i wanted to put them into a dialog with using the same format.
Unfortunatly this does not work well with a dialog;
I can only see the last company name in the dialog. I searched a bit and found one person with a simular problem but i didnt realy understand their conclusion.
Help will obviously become a +rep and 7 years of luck XD
I made this simple command that shows a clientmessage with all companynames.
Since there are very much of them and i want to add them simply i wanted to put them into a dialog with using the same format.
pawn Код:
if(!strcmp(cmdtext, "/soldornot", true))
{
new hugestring[500];
for(new h = 0; h < MAX_COMPANIES; h++)
{
format(hugestring, sizeof(hugestring),"%s",CompanyNames[h]);
SendClientMessage(playerid,COLOR_ORANGE,hugestring);
}
return 1;
}
pawn Код:
ShowPlayerDialog(playerid,BANK_DIALOGID,DIALOG_STYLE_LIST,"Company's",hugestring,"Info","Exit");
Help will obviously become a +rep and 7 years of luck XD