12.11.2011, 20:25
pawn Код:
new highest[2] = {VoteOptions[0], 0};
for(new n=0; n<40; n++) //change the 40 to your highest number + 1 (highest number = amount)
{
if(VoteOptions[n] > highest[0])
highest[1] = n;
}
new string[100];
format(string, sizeof(string), "Highest value for option %d - value: %d", highest[1], highest[0]);
SendClientMessageToAll(0x999999AA, string);
(didn't test it, just wrote it up)