Raised This Month: $ Target: $400
 0% 

callfunc_begin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CHE4TER
Member
Join Date: Jul 2013
Location: Portugal
Old 10-22-2013 , 09:47   callfunc_begin
Reply With Quote #1

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:
        case 0:
        {
            if( 
is_user_connected(id) && is_user_alive(id) )
                {
                    
client_print(idprint_chat"You must be dead to become invisible spectator!")
                }

                else

                {
                    if( 
callfunc_begin("amx_spectate""invisible_spectator.amxx") == )
                    
client_print(idprint_chat"You are now invisible spectator!")
                    
callfunc_end()
                    
                    
menu_destroy(menu)
                    return 
PLUGIN_HANDLED
                
}
        } 
// case 0 

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)
CHE4TER 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:13.


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