• 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.

[Solved] What's wrong here?

Status
Not open for further replies.
Level 13
Joined
Jan 2, 2016
Messages
978
JASS:
...............................
    local boolean al_hits_main_tar = LoadBoolean(udg_Table, id, 'ahmt')
.......................................
    call DisplayTextToForce(GetPlayersAll(), "good so far")
    if (al_hits_main_tar == true) then
         call DisplayTextToForce(GetPlayersAll(), "true")
    else
         call DisplayTextToForce(GetPlayersAll(), "false")
    endif
In the game I see "good so far" and after that - neither true, neither false.
What's going on?!

EDIT: Nevermind, I was loading the value from the wrong hashtable field........
Had set id to "GetHandleId", when it was supposed to be "GetUnitTypeId"
 
Status
Not open for further replies.
Top