Author | Message | |||||
---|---|---|---|---|---|---|
Help With Hollow's Wedding Tutorial Please!(Latest Revision:535)
| As stated in the title of this post... I'm looking for help with the tutorial that Hollow released on here: (https://eoserv.net/forum/topic/20657) I followed the instructions very carefully and of course, I had to make some modifications to even get this far... I've fixed a few errors I came across, but now I'm stuck with these errors: ||=== Build: MYSQL+SQLITE in eoserv (compiler: GNU GCC Compiler) ===| handlers\Law.cpp||In function 'void Handlers::Law_Request(Character*, PacketReader&)': handlers\Law.cpp|36|error: invalid use of incomplete type 'class World' fwd\world.hpp|10|note: forward declaration of 'class World' handlers\Law.cpp|38|error: invalid use of incomplete type 'class World' fwd\world.hpp|10|note: forward declaration of 'class World'| handlers\Law.cpp|80|error: invalid use of incomplete type 'class World' fwd\world.hpp|10|note: forward declaration of 'class World' handlers\Law.cpp|89|error: invalid use of incomplete type 'class World' fwd\world.hpp|10|note: forward declaration of 'class World' handlers\Law.cpp|91|error: invalid use of incomplete type 'class World' fwd\world.hpp|10|note: forward declaration of 'class World' handlers\Law.cpp|92|error: invalid use of incomplete type 'class World' fwd\world.hpp|10|note: forward declaration of 'class World' handlers\Law.cpp|106|error: invalid use of incomplete type 'class World' fwd\world.hpp|10|note: forward declaration of 'class World' ||=== Build failed: 7 error(s), 0 warning(s) (0 minute(s), 2 second(s)) ===| Here is a snippet of the code that is throwing these errors: if (character->HasItem(1) >= int(character->world->config["LawMarriageCost"])) { character->DelItem(1, int(character->world->config["LawMarriageCost"]));; ^ The underlined, bold lettering is what the problem is, but what's wrong with it??? What am I missing here? Lol
|
Re: Help With Hollow's Wedding Tutorial Please!(Latest Revision:535)
| Pretty sure newer revisions of eoserv make references to the World object via a member function of the Character object called SourceWorld(). Something like that. Willing to bet that's your problem. --- Want to learn to pixel? Pixelsource.org
|
Re: Help With Hollow's Wedding Tutorial Please!(Latest Revision:535)
| I think you need to include this header #include "world.hpp" or depending on how your project is set up #include "../world.hpp"
| |