> > > ** I added this code and compiled and got this error: > > > > > > WARNING: Implicit declaration of function hunt_victim > > > > I receive this code whenever I forget to prototype a function. Either > > place a prototype of hunt_victim in the function you're using it in, or > > the entire file. > > Hmmm, I don't man to be rude or anything but me being a newbie myself I > know that to get rid of that message you need to put > void hunt_victim(struct char_data * ch); > at the begining of spec_procs.c > Hmmm, maybe its just me but that seems kinda obvious. This is what is known as 'prototyping'. What this means is you let a function or a file know that an external function exists. Alternately, you could use: void hunt_victim(); If you change the structure of the parameters anywhere, using this example keeps you from having to redefine prototypes. This, of course, isn't true if you change the returned data structure or the name. It seems obvious to some, not so obvious to others. It's good you brought that up, however.
This archive was generated by hypermail 2b30 : 12/18/00 PST