- Joined
- Apr 17, 2009
- Messages
- 3,572
I was trying to make the exercise of a tutorial and I got some compiling errors. Ignore the use/sense of this function.
I'm just curious about the syntax.
I get an error at this:
Can you tell what's wrong?
I'm just curious about the syntax.
JASS:
function DivideNumbers takes integer n returns nothing
local integer dividant = 1
local integer array result
local integer array1 = 1
loop
set result [array1] = n/dividant
set dividant = dividant+1
set array1 = array1 +1
exitwhen dividant == n
endloop
call BJDebugMsg(result [array1])
endfunction
I get an error at this:
JASS:
set dividant = dividant+1
Can you tell what's wrong?