callfunc_begin
Hi there! I'm triying to call a func from another plugin, but there's an error!
Maybe you can tell me what I'm doing bad? My code: PHP Code:
L 10/22/2013 - 14:41:05: callfunc_end called without callfunc_begin L 10/22/2013 - 14:41:05: [AMXX] Displaying debug trace (plugin "am.amxx") L 10/22/2013 - 14:41:05: [AMXX] Run time error 10: native error (native "callfunc_end") L 10/22/2013 - 14:41:05: [AMXX] [0] am.sma::adminMenu_handler (line 41) |
Re: callfunc_begin
You can only do callfunc_end() when there is an successfull function called.
You didn't put { and } to define the code of ( if ( ) ) check, so the compiler will only consider the client_print function as the only function of the if check. Therefore, when the check fails, callfunc_end will throw an error as the function call failed. So you could do (Also you could check for errors for debugging ...) Code:
|
Re: callfunc_begin
amx_spectate is the command, not the public function.
Use this : PHP Code:
|
| All times are GMT -4. The time now is 23:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.