exge
New Member
- Reaction score
- 15
im just starting JASS and i ran into problems even with a simple script like this :banghead: :banghead: :banghead: :banghead: :banghead:
I know this code has no real use in WE but i want to know why doesnt it compile
Code:
function Trig_SumOfInt_Actions takes nothing returns integer
local integer firstNum
local integer secondNum
local integer sum = firstNum + secondNum
return sum
endfunction
function Trig_ShowSum takes integer sum_Actions returns string
call DisplayTextToForce(GetPlayersAll(),"sum is " + sum)
endfunction
//===========================================================================
function InitTrig_SumOfInt takes nothing returns nothing
set gg_trg_SumOfInt = CreateTrigger( )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_SumOfInt, Player(0) )
call TriggerAddAction( gg_trg_SumOfInt, function Trig_SumOfInt_Actions )
endfunction
I know this code has no real use in WE but i want to know why doesnt it compile