13.01.2016, 02:11
Quote:
i have made a simple map voting system, player presses enter votes for there map then when the voting is finished the server loads the map.
when the player votes for say map 2 it says map 0 loaded can anybody help me please im willing to give a small donation if anyone can help http://pastebin.com/yUR3LUFN |
Код:
for (new i=0; i <sizeof(MapVoted); ++i) { if (MapVoted[i] > value) value = MapVoted[i]+1; //+1 because map ids start from 1 and not 0