• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[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