Creating a Quest System

Posted by Trom on Wed 10 Mar 2004 09:28 PM — 6 posts, 21,844 views.

#0
--> (quest.c)...
quest.c: In function `do_quest':
quest.c:561: warning: no previous prototype for `get_random_room_for'
quest.c:585: warning: no previous prototype for `generate_quest'
quest.c:759: warning: no previous prototype for `quest_level_diff'
quest.c:770: warning: no previous prototype for `quest_update'
quest.c:814: warning: no previous prototype for `end_quest'
quest.c:825: warning: no previous prototype for `do_mob_tell'
quest.c:834: warning: no previous prototype for `do_qpgive'


quest.c:882: error: syntax error at end of input
make: *** [quest.o] Error 1

First off i'm unsure how to get rid of the 'no previous prototype' warning since i've just spent like 30 minutes searching the net to find a cure, found only few responses saying its not an error. Which makes me think its either impossible to remove that warning, or people haven't figured it out yet.

Second is the error itself, 'syntax error at end of input', i've gone through the quest.c file completely and theres no errors, no missing brackets.. That line '882' is like 1 line away from the end of the file (so i check the last function fully and saw nothing wrong).

Info: I have all the 'no previous prototypes' functions declared in proto.h (this is rot, so proto.h is linked with merc.h)
ex. void end_quest args ( ( CHAR_DATA * ch, int time ) );

If you can help me please do, thanks in advance.

Amended on Thu 11 Mar 2004 03:46 PM by Trom
#1
.
Australia Forum Administrator #2
Sounds like a brace out of place. Try looking around the first error/warning.

Hard to say more without seeing the code.
#3
I checked the first function on the warnings list and a few around it, then skimmed the file. Not sure what else it could be. The code is all over, so i'm not sure what to post (if anything).
Australia Forum Administrator #4
If you email me the file in question (quest.c) and any .h files it needs (excluding system ones) I'll take a look.
#5
Thanks for the help, but the problem wasn't solved, i was more less looking for a quick solution, and its not a quick fix. Thanks again for all the help, this has been the one true reliable forum.