Raised This Month: $ Target: $400
 0% 

Teoretical Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 06-20-2011 , 11:57   Re: Teoretical Help
Reply With Quote #3

There are various possibilities:

- includes to share various constants on compile
- natives, usefull for making functions that can be called from sub-plugins (requires a include file)
- forwards, usefull if you want to hook something from the main plugin (I think it requries includes, see tutorials to be sure)
- xvars to share variables to other plugins like pcvars, only that you set the variable in the main plugin rather than using functions, this method is fast and I think it doesn't require includes.
- callfunc_* functions to call a function from a plugin, doesn't require a include or anything but I think it's pretty slow.

And ofc server cvars and commands, but those aren't really internal.

I belive you can change/remove tasks from another plugin, didn't really try it but there's a "outside" variable in change_task(), task_exists() and remove_task().

There are tutorials for all these methods.

If you have somehing specific you want to make, please do tell so we can help you pick the most efficient methods.
__________________

Last edited by Hunter-Digital; 06-20-2011 at 11:59.
Hunter-Digital 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 23:35.


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