• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Unholy error

Status
Not open for further replies.
Level 6
Joined
Oct 14, 2010
Messages
58
Hi, brothers)

Working with jass occurred one error:
(maybe I put it in the wrong section)

Unholy%20error.jpg


What can be the reason'?
(its end of map code)

help me)
 
Level 6
Joined
Oct 14, 2010
Messages
58
Ohh =\

Always showed the absence of "endif", but now something has gone wrong.

its this trigger(for anyone interested):
JASS:
function AutoGameType takes nothing returns nothing
    local string g = "blablabla1"
    local string s = "blablabla2"
    local string f = "blablabla3"
    local string k
    if udg_ModeActive == false then
        set udg_N = ( ( udg_PlayersDark + udg_PlayersWhite ) * 10 )
        set udg_ModeActive = true
        set udg_DieGameType = true
        set k = I2S(udg_N)
        call DestroyTrigger(gg_trg_DieGameType)
        call DestroyTrigger(gg_trg_RoundsGameType)
        call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS, 8.00, (udg_PlayerColor[GetPlayerId(udg_GameHost)] + (GetPlayerName(udg_GameHost) + g)))
        call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS, 8.00,(s+k+f))
        call TriggerExecute(gg_trg_StartGameClock)
        if udg_zmlb_Hide == true then
            call TriggerExecute(gg_trg_mbHide)
        else
            call EnableTrigger(gg_trg_zmlbHide)
        endif // Missed Endif, wtf)
    endif
    set s = null
    set f = null
    set k = null
    set g = null
    call DestroyTrigger(GetTriggeringTrigger())
endfunction

Dr. Boom, thanks, luv yu<3
 
Last edited:
Level 16
Joined
May 1, 2008
Messages
1,605
Moin moin =)

In addition if I see your trigger with
JASS:
DisplayTimedTextToForce
you know this is a BJ and must be fixed like:
JASS:
function actions takes nothing returns nothing // this your native
   local integer i = 0 // for the loop

   loop
        exitwhen i == 15
        call DisplayTimedTextToPlayer(Player(i),0,0,8.00,"the massage here")
        set i = i + 1
   endloop
endfunction
You can use this way, because you massage all players anyway.

Btw, if you really luv me, you should give +rep for help ;)

Greetings and Peace
Dr. Boom
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,285
Atleast jass healper gives a more logical error.

Try missing that in normal WE, you eithor get thousands of expected errors for every line below a certain point or the editor just crashes on you without saving.

As a rule of thumb, if an error appears at the end of a script it usually signifies you missed something out that is required.
 
Status
Not open for further replies.
Top