19.05.2016, 17:28
Код:
stock EventPicked() { for(new i = 0;i < sizeof(EventVoteType); i++) { if(i != (sizeof(EventVoteType) - 1)) { if(EventVoteType[compareWithNext] < EventVoteType[i+1]) { compareWithNext = i+1; } } } return EventVoteType[compareWithNext]; }
Код:
if(EventPicked() == EventVoteType[0]) { //yadayada }