Battle[StFh]
New Member
- Reaction score
- 6
Hey guys,
I wanted to start learning JASS, so I used Vexorian's "Introduction to JASS" tutorial.
I followed every step and made every trigger up myself to learn.
Everything went fine till this trigger:
I made it up myself, then it gave me 42 compile errors, so I copied the one made by Vexorian, and it also gave me 42 compile errors...
Anyone knows what's wrong in this trigger?
Thanks in advance,
Battle[StFh]
I wanted to start learning JASS, so I used Vexorian's "Introduction to JASS" tutorial.
I followed every step and made every trigger up myself to learn.
Everything went fine till this trigger:
Code:
function Msg takes string s returns nothing
call DisplayTextToPlayer(Player(0),0,0, s )
endfunction
function Trig_Statements_in_Jass_Actions takes nothing returns nothing
local integer a=GetRandomInt(1,10)
local integer b=GetRandomInt(1,10)
call Msg("a="+I2S(a))
call Msg("b="+I2S(b))
if (a>b) then
call Msg(I2S(a)+" is the greater number")
endif
if b>a then
call Msg(I2S(b)+" is the greater number")
endif
if (a==b) then
call Msg("they are the same number")
endif
endfunction
//===========================================================================
function InitTrig_Statements_in_Jass takes nothing returns nothing
set gg_trg_Statements_in_Jass = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Statements_in_Jass, Player(0), "Statements", true )
call TriggerAddAction( gg_trg_Statements_in_Jass, function Trig_Statements_in_Jass_Actions )
endfunction
I made it up myself, then it gave me 42 compile errors, so I copied the one made by Vexorian, and it also gave me 42 compile errors...
Anyone knows what's wrong in this trigger?
Thanks in advance,
Battle[StFh]