AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   callfunc_push_int in callfunc_begin prints error? (https://forums.alliedmods.net/showthread.php?t=131561)

Backstabnoob 07-06-2010 13:20

callfunc_push_int in callfunc_begin prints error?
 
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.

Emp` 07-06-2010 13:36

Re: callfunc_push_int in callfunc_begin prints error?
 
callfunc_begin is probably returning -1 or -2 which still passes the check. You should check if the result is equal to 1.


All times are GMT -4. The time now is 07:08.

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