Hello, i have got no expereince at all with c++.. im just adding something to the source of my private server and i failed to do so because of the fact that it wasn't a tutorial on how to add it (just a release)

so here is the error:

error C2046: illegal case
error C2043: illegal break
error C2046: illegal case
error C2043: illegal break
error C2046: illegal case
error C2043: illegal break
error C2046: illegal case
error C2043: illegal break
error C2046: illegal case
error C2043: illegal break
error C2046: illegal case
error C2043: illegal break
error C2046: illegal case
error C2043: illegal break
error C2046: illegal case
error C2043: illegal break

here is the code itselfs:

#else               switch( nAbilityOption )
    {
    case 3: dwSfx = XI_GEN_ITEM_SETITEM03; break; 
    case 4: dwSfx = XI_GEN_ITEM_SETITEM04; break; 
    case 5: dwSfx = XI_GEN_ITEM_SETITEM05; break; 
    case 6: dwSfx = XI_GEN_ITEM_SETITEM06; break; 
    case 7: dwSfx = XI_GEN_ITEM_SETITEM07; break; 
    case 8: dwSfx = XI_GEN_ITEM_SETITEM08; break; 
    case 9: dwSfx = XI_GEN_ITEM_SETITEM09; break; 
    case 10: dwSfx = XI_GEN_ITEM_SETITEM10; break; 
    }
#endif

of course it's just a part of the whole code but i believe that this is what you need to be able to help me :) anyways i have someone could reply to me! thanks

You need a line break between #else and switch(nAbilityOption).

Thanks a lot much appericated!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.