Raised This Month: $32 Target: $400
 8% 

call multiple plugins' functions from a plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AnimalMonster
Senior Member
Join Date: May 2020
Old 02-07-2023 , 17:57   call multiple plugins' functions from a plugin
Reply With Quote #1

I figured out i can use Tries, Iters and Snapshots but i don't know how effective they are, in terms of [time. I want to challange myself to make an Item API and i thought of adding an callfunc system like all the modules have (eg. fakemeta: register_forward(FM_*, "function"), ham: RegisterHam(Ham_*, "function") but the only thing i cannot figure out is how effective a trie will be in this case... has anyone ever though of making the same thing? How did they do it? So i came here to ask.

Last edited by AnimalMonster; 02-08-2023 at 03:21.
AnimalMonster is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-07-2023 , 23:41   Re: call multiple plugins' functions from a plugin
Reply With Quote #2

Step 1: Use normal text with normal size and color so your post is readable.

Also, what do Tries have to do with callfunc?
__________________
fysiks is offline
AnimalMonster
Senior Member
Join Date: May 2020
Old 02-08-2023 , 03:23   Re: call multiple plugins' functions from a plugin
Reply With Quote #3

I don't know either, all i want to do is call each plugin by the function stated in the register function. Turns out i'm pretty much complicating things once i find something new i can use and wanna see how it works

I'll still wait to see more suggestions on how i can do that.

Last edited by AnimalMonster; 02-08-2023 at 03:23.
AnimalMonster is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 02-08-2023 , 15:51   Re: call multiple plugins' functions from a plugin
Reply With Quote #4

Are you more interested in calling functions dynamicly?

Is that what are you looking for?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
AnimalMonster
Senior Member
Join Date: May 2020
Old 02-08-2023 , 17:26   Re: call multiple plugins' functions from a plugin
Reply With Quote #5

Yes! Exactly how Amxx sends custom named forwards and sh*t but i wonder if that's the fastest way to call a plugin's function..
AnimalMonster is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-08-2023 , 23:47   Re: call multiple plugins' functions from a plugin
Reply With Quote #6

Quote:
Originally Posted by AnimalMonster View Post
Yes! Exactly how Amxx sends custom named forwards and sh*t but i wonder if that's the fastest way to call a plugin's function..
The only way to call another plugin's functions without implementing custom natives or forwards (and editing those plugins) is to use callfunc functions. AMX Mod X does not use any callfuncs in its default plugins.

I'd say that using callfunc should be a last resort i.e. if there is no other way realistic way to communicate with that plugin.
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

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 01:30.


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