HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Syntax for multiboards

11-23-2004, 02:09 AM#1
Sicknesslife
Hi,

I am new to JASS as anyone who has read my previous posts can verify. I am trying to set an item on a multiboard and am getting an error that does not make a whole lot of sense to me. I seem to have a problem determining the perameters that native functions can take, are there any general rules? I knlow that there are rules for specific call backs/ functions but are there any conventions that I should be aware of? any help would be appreciated. My function is as follows:


Code:
call MultiboardSetItemValueBJ( udg_Debug, 1, 1, R2S(LifeGain * I2R(CountUnitsInGroup(G))


It gives my this error : Expected '

G is a local unit group in the function that this callback is in and life gain is an integer that is being passed to the function by its caller, Debug is the multiboard name
11-23-2004, 02:41 AM#2
Beta_Tester
look at the number of parenthesis you have at the end you must have the same amount of closes as opens

Code:
You have:
call MultiboardSetItemValueBJ( udg_Debug, 1, 1, R2S(LifeGain * I2R(CountUnitsInGroup(G))
Code:
You Should have:
call MultiboardSetItemValueBJ( udg_Debug, 1, 1, R2S(LifeGain * I2R(CountUnitsInGroup(G))))
11-23-2004, 04:11 AM#3
Sicknesslife
thanks, sorry for wasting your time with such a stupid mistak