Z
zigzagrocket
Guest
I'm trying to learn jass, and going through the tutorial. I got to this code and I copied and pasted it and it doesn't work. I can not figure out why. says expected ( on mine. please help.
Code:
function Msg takes string s returns nothing
call DisplayTextToForce( GetPlayersAll(), s )
endfunction
function AddSubstract takes integer a, integer b returns nothing
set udg_r1=a+b
set udg_r2=a-b
endfunction
function Trig_JASS_test_Actions takes nothing returns nothing
local integer a=14
local integer b=56
call AddSubstract takes(a,b)
call Msg("a= "+I2S(a))
call Msg("b= "+I2S(b))
call Msg("The Addition is "+I2S(udg_r1))
call Msg("The Substraction is "+I2S(udg_r2))
endfunction