Raised This Month: $ Target: $400
 0% 

callfunc_push_int in callfunc_begin prints error?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 07-06-2010 , 13:20   callfunc_push_int in callfunc_begin prints error?
Reply With Quote #1

PHP Code:
if(callfunc_begin("show_vote_menu""deagsmapmanager.amxx"))
{
    
callfunc_push_int(true// didn't know how to put there a bool; tell me if anything's wrong
    
callfunc_end()

this prints
L 07/06/2010 - 18:53:00: callfunc_push_xxx called without callfunc_begin

What the hell?! I'm pretty sure the function itself is called on a check.
Backstabnoob is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 07-06-2010 , 13:36   Re: callfunc_push_int in callfunc_begin prints error?
Reply With Quote #2

callfunc_begin is probably returning -1 or -2 which still passes the check. You should check if the result is equal to 1.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
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:08.


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