Why do I get this Error?

Discuss all aspects related to modding Zandronum here.
Post Reply
CtrlAltDestory
 
Posts: 29
Joined: Fri Dec 28, 2012 5:17 am

Why do I get this Error?

#1

Post by CtrlAltDestory » Tue Jan 01, 2013 9:28 am

I keep getting "Expected ) got BDSP" from this line in my decorate:

Code: Select all

BDSP C 6 Bright A_FireBullets(15, 8, 15, (random(1,1150)/random(1,250)*random(0,1)*ACS_ExecuteWithResult(999,0,0,0)), "BloodPuff")
If it matters this is what my ACS says (Its compiled dont ask):

Code: Select all

script 999 (void)
{
	if (CheckInventory("MathCounter") > 49)
		SetResultValue ( 3 );
 else
		SetResultValue ( 1 );
}
Last edited by CtrlAltDestory on Mon Jan 07, 2013 9:54 am, edited 1 time in total.

BloodyAcid
Forum Regular
Posts: 294
Joined: Sat Jun 16, 2012 7:42 pm

RE: Why do I get this Error?

#2

Post by BloodyAcid » Wed Jan 02, 2013 4:11 am

I count 6 '(' brackets and 5 ')' brackets. Put one at the very end.

CtrlAltDestory
 
Posts: 29
Joined: Fri Dec 28, 2012 5:17 am

RE: Why do I get this Error?

#3

Post by CtrlAltDestory » Wed Jan 02, 2013 4:59 am

BloodyAcid wrote: I count 6 '(' brackets and 5 ')' brackets. Put one at the very end.
Idk whats wrong with my brain every time i count it they are both equal.

Edit: I did nothing threw it back in and it works. Idk how it works but it does. Im worried about the error coming back.

Edit: Figured it out, Thanks for the help though.
Last edited by CtrlAltDestory on Wed Jan 02, 2013 5:16 am, edited 1 time in total.

Post Reply