• Advertisement

Archived

This topic is now archived and is closed to further replies.

Error def....

This topic is 6761 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

  • Advertisement