Strange Problem

Tyman2007

Ya Rly >.
Reaction score
74
Well it's strange to me. Here's the trigger.

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.
 

Romek

Super Moderator
Reaction score
964
JASS:
if ( bo == false )


Should be:

JASS:
if ( bo == false ) then



Don't forget the 'then'! :D
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top