> ok
> thats something I have already knew.
> this is the problem,
> 
> subscript has type `char'
> 
> this is that something is getting something else thar char, 
> usally int,
> that what I have come to understand.
> 
It's your atoi() calls.  just cast them to 'int'

> unused variable `tReset'
> 
> this one I already knew too but I dont know if I can remove it without
> affecting the rest of the code.
> 
> structure has no member named
> 
> this is where I get into alot of problems, Im a beginner in C++
> and I havent gotten to structures yet, dont know how to fix 
> this or even
> know where to search for a clue, it is with this I need the help.

That's funny because C++ generally doesn't use structures, it uses classes.
:)

Anyway, if you look in merc.h there are tons of data structures.
one of them is room_index_data (or on some room_data)

It defines the instance on one room in your mud.
It has several variables in the data structure. 
If you try to access a variable that's no defined in the data structure, you
get this error.

We could simply tell you the line to add to the code to fix it.
ROOM_INDEX_DATA *last_room;

or whatever it was called in that structure. But that won't help you
understand the problem.
structures can be a bit complicated if you haven't been programming very
much, and understanding the way that work is imperative to programming on a
mud.   The mud is filled with two very important things:
structures, and linked lists.

It's definitely a good tool to learn from, but some things might need to be
learned outside of the mud code as well.
YMMV.

Good luck.

 

Reply via email to