• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Solved] What's wrong here?

Status
Not open for further replies.
Level 13
Joined
Jan 2, 2016
Messages
973
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