Raised This Month: $ Target: $400
 0% 

First plugin, need feedback


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
2called-chaos
Senior Member
Join Date: Jul 2006
Old 11-10-2013 , 05:58   Re: First plugin, need feedback
Reply With Quote #8

Yeah sure they are not related. I couldn't find the information what pawn return by default if you have no explicit return in your function. To illustrate my thoughts (assuming no return would be NULL and the constants would represent strings rather than integers):

PHP Code:
# the caller (amx)
result callback()
if (
result  ==  "success")
    
continue_event
else if (result == "handled")
    
block_event
else i_dont_know 
I guess an empty function is the same as return 0 so I only HAVE TO return something if I want to stop something, am I right? Or is it the case that depending on what you handle you HAVE TO return either one or nothing?

Thank you very much so far!
__________________


My post was useful? Than klick here, please. Tanks.

Last edited by 2called-chaos; 11-10-2013 at 06:01.
2called-chaos 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:17.


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