Zedzy
ℑΣÐℑΨ
- Reaction score
- 41
I am using JASS NewGen, and when I saved it, I got a syntax error here:
Help is greatly appreciated. :thup:
JASS:
function Msg takes string s returns nothing
call DisplayTextToPlayer(Player(0),0,0, s)
endfunction
function Trig_Melee_Initialization_Actions takes nothing returns nothing
local real t=GetRandomReal(1.00,2.00)
call Msg(R2S(t))
if (t>1.50) then
call Msg("The value of t is greater than 1.50")
//==Syntax=Error==============================================================
elseif (t<1.50)
//==Syntax=Error==============================================================
call Msg("The value of t is less than 1.50")
else
call Msg("The value of t is equal to 1.50")
endif
endfunction
//===========================================================================
function InitTrig_JASSy_Test takes nothing returns nothing
set gg_trg_JASSy_Test = CreateTrigger( )
call TriggerRegisterPlayerEventEndCinematic( gg_trg_JASSy_Test, Player(0) )
call TriggerAddAction( gg_trg_JASSy_Test, function Trig_Melee_Initialization_Actions )
endfunction
JASS:
elseif (t<1.50)
Help is greatly appreciated. :thup: