Module Help
staticattic
Posts: 200
I had been using generic AMX modules. Today I decided to write my own, rather than modifying the ones I download. Silly question I suppose, but I get 2 errors:
Dimension Mismatch: [1] vs [0]
Type or Dimension Conflict For [ConfRoom]
Where are the coming from?
DEFINE_MODULE 'Tandberg' ConfRoom (dvTand, nTandButtons)
The module itself compiles just fine.
Dimension Mismatch: [1] vs [0]
Type or Dimension Conflict For [ConfRoom]
Where are the coming from?
DEFINE_MODULE 'Tandberg' ConfRoom (dvTand, nTandButtons)
The module itself compiles just fine.
0
Comments
Jeff
module_name= 'Tandberg' (dev dvTand,devchan dcTandButtons [])
I personally would not use DEVCHANs. Too limiting...
See kids, this is what happens when you rush through something.
I have no idea what I was thinking. I guess I was thinking about how hungry, thirsty, and tired I was. Anyway, I made a careless mistake.
Modifications made for my own sanity check:
DEFINE_MODULE 'Tandberg' VTCRoom(nTX_Buttons)
and here's the kicker:
MODULE_NAME='Tandberg' (INTEGER nTX_Buttons[]) Notice the braces at the end? Had left them off originally. Silly me.
FYI, nTX_Buttons is declared like this:
VOLATILE INTEGER nTX_Buttons[] = {
56, //Cam 1
133, //Cam 2
134, //Cam 3
135, //Doc Cam
136, //DVD
137, //PC Selection
138 //VCR
}