10.04.2014, 16:03
MAX_BUTTONS buttons is 51. A normal loop would go from 0 to 50. Your code goes from 1-51 and the last valid index is 50; hence the run time error. Use the first index and don't exceed the array's size:
Change to:
Change to:
pawn Код:
for(buttonid = 0; buttonid < MAX_BUTTONS; buttonid ++)