07.07.2011, 05:10
pawn Код:
#define MAX_RACING_MAPS 4 //You can define here yourself the amount of racing maps you own.
#define VOTEMAP_DIALOGID 1 //You should change it if you are using another dialogs with the same ID.
stock createVote()
{
new dstr[512], bool:check = false;
for (new i = 0; i < MAX_RACING_MAPS; i++)
{
if(!check)
{
format(dstr, sizeof(dstr), "%s", gVoteItems[i]);
check = true;
}
else format(dstr, sizeof(dstr), "%s\r\n%s", dstr, gVoteItems[i]);
}
ShowPlayerDialog(playerid, VOTEMAP_DIALOGID, DIALOG_STYLE_LIST, "Racing Vote", dstr, "Vote", "Cancel");
}