Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ ROM ➜ Compiling the server ➜ Creating a Quest System

Creating a Quest System

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Trom   (82 posts)  Bio
Date Wed 10 Mar 2004 09:28 PM (UTC)

Amended on Thu 11 Mar 2004 03:46 PM (UTC) by Trom

Message
--> (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.

Top

Posted by Trom   (82 posts)  Bio
Date Reply #1 on Thu 11 Mar 2004 03:47 PM (UTC)
Message
.
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #2 on Fri 12 Mar 2004 02:55 AM (UTC)
Message
Sounds like a brace out of place. Try looking around the first error/warning.

Hard to say more without seeing the code.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Trom   (82 posts)  Bio
Date Reply #3 on Fri 12 Mar 2004 10:13 PM (UTC)
Message
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).
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #4 on Sat 13 Mar 2004 02:11 AM (UTC)
Message
If you email me the file in question (quest.c) and any .h files it needs (excluding system ones) I'll take a look.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Trom   (82 posts)  Bio
Date Reply #5 on Sun 14 Mar 2004 03:32 AM (UTC)
Message
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.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


16,675 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.