C-Death
I love you
- Reaction score
- 45
Hello, i am learning basic jass, i was wondering whats wrong with this code?
function Trig_Hero_Info_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), R2S(GetUnitFacing(gg_unit_Hpal_0000)) )
endfunction
//===========================================================================
function InitTrig_Hero_Info takes nothing returns nothing
set gg_trg_Hero_Info = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Hero_Info, Player(0), "-Hero Info", true )
call TriggerAddAction( gg_trg_Hero_Info, function Trig_Hero_Info_Actions )
endfunction
Whats wrong with that? it gives me a Fatal error?
function Trig_Hero_Info_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), R2S(GetUnitFacing(gg_unit_Hpal_0000)) )
endfunction
//===========================================================================
function InitTrig_Hero_Info takes nothing returns nothing
set gg_trg_Hero_Info = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Hero_Info, Player(0), "-Hero Info", true )
call TriggerAddAction( gg_trg_Hero_Info, function Trig_Hero_Info_Actions )
endfunction
Whats wrong with that? it gives me a Fatal error?