Array size limit for button events?
a_riot42
Posts: 1,624
I don't often use large arrays for channel numbers for button events, but I need to use one at the moment that has channels from 2301 to 2601. So I have an array of 300 integers, 2301 through 2601. But what I am finding is that the button event runs only if the channel is from the first 137th integers. Any button hit with a channel number above that doesn't run the button event. So if you hit button 2438 on a touch panel, which is in the array, the button event doesn't run. All buttons up to 2437 work, but nothing after. I've never seen this before, so it looks like its a limit. I am testing this on an iPad and the buttons are in subpages, if that's makes a difference. Very odd. I would have thought you could have an array of 4000 integers and it would work fine, but perhaps not. The most integers I've had in an array for button events was a few dozen.
Paul
Paul
0
Comments
An event table size (tpcount x buttoncount) can't exceed 4000.
Check out this post/thread:
http://www.amxforums.com/showthread.php?3746-Strange-problem-help-needed...&p=24575#post24575
Paul
http://www.amxforums.com/showthread.php?5943-EVENT-TABLES&p=39311#post39311
I already use the wildcard for something else....I think I can make it work without resorting to the wildcard event. But if nothing else works, that's always a solution. Odd that the wildcard doesn't suffer from this limitation.
Paul