Raised This Month: $ Target: $400
 0% 

What's better? forward of callfunc?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 01-23-2010 , 21:52   What's better? forward of callfunc?
Reply With Quote #1

I can't find a thread of a discussion about forwards and callfunc differences.

What's better?
I mean, it's better to use CreateOneForward of directly try to call the public function using callfunc?

Advantages/Disadvantages?

Thanks
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-23-2010 , 23:38   Re: What's better? forward of callfunc?
Reply With Quote #2

I prefer to use callfunc because you can have cross plugin communication without one plugin requiring another.
What I mean by that is Plugin A can execute a forward in Plugin B and plugin B can execute a forward in Plugin A.
Also, callfunc can allow you to set byref arguments easier and such.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 01-24-2010 , 08:28   Re: What's better? forward of callfunc?
Reply With Quote #3

Quote:
Originally Posted by Exolent[jNr] View Post
I prefer to use callfunc because you can have cross plugin communication without one plugin requiring another.
What I mean by that is Plugin A can execute a forward in Plugin B and plugin B can execute a forward in Plugin A.
Also, callfunc can allow you to set byref arguments easier and such.
Yes but you can only use integer&float by ref with callfunc.

And about performance? Is there a big difference or not?
I guess not.

Thanks
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Reply



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 07:20.


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