04.07.2011, 11:41
So, i'm looping these map id's and put them in variable using this:
Then i give people option to select their next map and when they select their map it should count that vote.
Then to make it select map with most votes:
Now how do i make it count for that certain mapid?
pawn Код:
mapid[b] = b;
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if (dialogid == 1995)
{
if(VoteAbility[playerid] == 1)
{
// how to make it count for that certain map?
}
}
return 1;
}
pawn Код:
new mapcount;
for (new i = 0; i < sizeof(mapid);i++)
{
if(mapid[i] > mapcount)
{
NextdmmapByVote = i;
mapcount = mapid[i];
printf("selected: %d", NextdmmapByVote);
break;
}
}