Raised This Month: $ Target: $400
 0% 

Function Prototypes


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
BAILOPAN
Join Date: Jan 2004
Old 03-17-2006 , 22:05  
Reply With Quote #7

As the guide says, you can do this:
Code:
#include <amxmodx> forward ThisFunction(num); public plugin_init() {    ThisFunction(5); } ThisFunction() {    return 56 }

However, I seriously recommend not abusing this.

If you need forward declarations for anything other than abstracting a set of API (like natives), you are missing the intent of plugins/doing something wrong. I'm sticking with my recommendations of either using a proper naming scheme or following the increasing trend of splitting plugins into smaller, intercommunicating pieces (the days of massive, monocode plugins are slowly ending).
__________________
egg
BAILOPAN is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode