New To JASS - Syntax Error

Zedzy

ℑΣÐℑΨ
Reaction score
41
I am using JASS NewGen, and when I saved it, I got a syntax error here:

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:
 

ReVolver

Mega Super Ultra Cool Member
Reaction score
609
did you try adding
JASS:
then
after the
JASS:
elseif (t<1.50)
?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top