Tyman2007
Ya Rly >.
- Reaction score
- 74
Well it's strange to me. Here's the trigger.
This trigger has a Syntax Error at
I just know the fix is easy.. but i'm still learning jass so sorry if it's a little noobish.
JASS:
scope NJT initializer Init
globals
private location lo = Location(GetRectCenterX(GetPlayableMapRect()), GetRectCenterY(GetPlayableMapRect()))
private texttag tt = CreateTextTagLocBJ( "hi", lo, 0, 10, 100, 100, 100, 99.00 )
private boolean bo = false
endglobals
private function Trig_Noob_Jass_Trigger_Actions takes nothing returns nothing
if ( bo == false )
set bo = true
else
call DestroyTextTag(tt)
endif
call RemoveLocation(lo)
endfunction
//===========================================================================
private function Init takes nothing returns nothing
set gg_trg_Noob_Jass_Trigger = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Noob_Jass_Trigger, Player(0), "hi", true )
call TriggerAddAction( gg_trg_Noob_Jass_Trigger, function Trig_Noob_Jass_Trigger_Actions )
endfunction
endscope
This trigger has a Syntax Error at
JASS:
if ( bo == false )
I just know the fix is easy.. but i'm still learning jass so sorry if it's a little noobish.