AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   MultiForward Paradox (https://forums.alliedmods.net/showthread.php?t=95864)

kielor 06-28-2009 06:54

MultiForward Paradox
 
Hello, guy's i've got a problem :((

include file:
PHP Code:

new fwd_reset CreateMultiForward("kz_resetdata"ET_IGNOREFP_CELL);
new 
fwd_result

plugin code:
PHP Code:

ExecuteForward(fwd_resetfwd_resultid); 

when compiling i get
Code:

D:\Downloads\CS servers\AMXX_Studio_1.4.3_final\compiler\include\kz-amxx.inc(26) : error 008: must be a constant expression; assumed zero
i've got almost the same code in that include but with different var and forward_handle names and it compiles without any problems!

here you go include:
PHP Code:

new fwd_start CreateMultiForward("kz_startclimb"ET_IGNOREFP_CELL);
new 
fwd_finish CreateMultiForward("kz_finishclimb"ET_IGNOREFP_CELLFP_FLOATFP_CELLFP_CELL); 

plugin code:
PHP Code:

ExecuteForward(fwd_startfwd_resultid);

and 
in other place

ExecuteForward
(fwd_finishfwd_resultidtimecp_count[id], gc_count[id]); 


ConnorMcLeod 06-28-2009 07:17

Re: MultiForward Paradox
 
You have to use CreateMultiForward inside of a function, show both .inc files.

kielor 06-28-2009 07:42

Re: MultiForward Paradox
 
Yeah baby, thx Connor <3 U!!

p.s. really it wasn't called in function

close plz


All times are GMT -4. The time now is 15:31.

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