Raised This Month: $ Target: $400
 0% 

Solved Calling a function from or passing its value to other plugins


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
PatriotGames
AlliedModders Donor
Join Date: Feb 2012
Location: root@irs:/# rm -rf /
Old 01-13-2019 , 18:13   Calling a function from or passing its value to other plugins
Reply With Quote #1

Say that I have a plugin with a function that counts i every x seconds. Now, if I want to adjust cvars in other plugins based on the i++ value, what is the best method to call that count function or pass its value to those other plugins? I read the wiki section on forwards and it seems that method could be used here, though I've not used one before and am not sure how to set it up.

OTOH, would it be equally effective to simply include the count function and its timer in the other plugins and create the timers from the same event hook? Would the timers stay synchronized and does it matter?


Thank you,
PG

Last edited by PatriotGames; 01-14-2019 at 18:34. Reason: solved
PatriotGames 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:32.


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