Error def....

Started by
1 comment, last by ViPeR007 24 years, 6 months ago
Trying to access something which is not an array, using []. I.e.:

int asd;
int k=asd[0];

(I haven't tested it, so I don't know if that would give that exact error message). If you could provide a bit more info on the line that's causing this message I might be able to help you further.

/Niels

<b>/NJ</b>
Advertisement
Could anyone tell me what this error message means?

error C2676: binary '[' : 'struct BOB_TYP' does not define this operator or a conversion to a type acceptable to the predefined operator

I have several and I thought that if I can get one fixed I should be able to get the others fixed too.

Thanx for the info,
ViPeR

This is one of the lines that is a problem:

bots[0].state = BOT_STATE_OFF;

Its setting the bot (enemy) to an off state or not being drawn on the screen.

Thanx again,
ViPeR

This topic is closed to new replies.

Advertisement