Hakaku wrote: |
If you're using (wx)Dev-Cpp, don't forget this part. If it's highlighting asss.h, then this means it can't find the file. You need to tell it where to find the file (i.e. include directory). Check out Step #7 - make sure you put it in include directories, and not library directories.
Edit: woah I have no clue what I'm replying to anymore. |
Code: Show/Hide #include asss.h
// Interfaces local Imodman *mm; local Ichat *chat; // Functions local void ShipChange(Player *p,int newship, int newfreq) { chat->SendMessage(p,"You have changed ships."); } // The entry point: EXPORT int MM_template(int action, Imodman *mm_, Arena *arena) { int rv = MM_FAIL; // return value if (action == MM_LOAD) { mm = mm_; chat = mm->GetInterface(I_CHAT,ALLARENAS); if (!chat) // check interfaces rv = MM_FAIL; else { mm->RegCallback(CB_SHIPCHANGE, ShipChange, ALLARENAS); rv = MM_OK; } } else if (action == MM_UNLOAD) { mm->UnregCallback(CB_SHIPCHANGE, ShipChange, ALLARENAS); mm->ReleaseInterface(chat); rv = MM_OK; } return rv; } |
Quote: |
#include "asss.h" |