Raised This Month: $ Target: $400
 0% 

MultiForward Paradox


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kielor
Senior Member
Join Date: Jan 2009
Location: Russia, Novosibirsk
Old 06-28-2009 , 06:54   MultiForward Paradox
Reply With Quote #1

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]); 
__________________
try using +karma if i helped you...
kielor is offline
Send a message via ICQ to kielor Send a message via Skype™ to kielor
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-28-2009 , 07:17   Re: MultiForward Paradox
Reply With Quote #2

You have to use CreateMultiForward inside of a function, show both .inc files.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
kielor
Senior Member
Join Date: Jan 2009
Location: Russia, Novosibirsk
Old 06-28-2009 , 07:42   Re: MultiForward Paradox
Reply With Quote #3

Yeah baby, thx Connor <3 U!!

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

close plz
__________________
try using +karma if i helped you...
kielor is offline
Send a message via ICQ to kielor Send a message via Skype™ to kielor
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 15:31.


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