Raised This Month: $ Target: $400
 0% 

register_forward


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 01-16-2011 , 09:48   register_forward
Reply With Quote #1

I have:


PHP Code:
new g_Forw


public somefunc()
{
       
g_Forw register_forward ( ............ )

Should I check is forward registered, before I make unregister_forward() inside other function?
Or I can make unregister_forward ( forwardType, g_Forw ) without checking g_Forw pointer?
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-16-2011 , 09:57   Re: register_forward
Reply With Quote #2

You don't need to check. It will throw an error if you provide an invalid function. But for the forward index (handle), if not found the native will simply return 0.
__________________

Last edited by Arkshine; 01-16-2011 at 10:06.
Arkshine is offline
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 01-16-2011 , 10:22   Re: register_forward
Reply With Quote #3

Thank you!
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
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 02:11.


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