Give the voted map some more points, how?
#1

So, i'm looping these map id's and put them in variable using this:
pawn Код:
mapid[b] = b;
Then i give people option to select their next map and when they select their map it should count that vote.

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;
}
Then to make it select map with most votes:
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;
        }
    }
Now how do i make it count for that certain mapid?
Reply


Messages In This Thread
Give the voted map some more points, how? - by swieberdevos - 04.07.2011, 11:41
Re: Give the voted map some more points, how? - by Lorenc_ - 04.07.2011, 12:21
AW: Give the voted map some more points, how? - by Nero_3D - 04.07.2011, 12:33

Forum Jump:


Users browsing this thread: 1 Guest(s)