• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

suddenyl 413 compiler errors oO

Status
Not open for further replies.
Level 7
Joined
Jan 30, 2011
Messages
267
i've been triggering a bit on my map in JNGP and everything was fine
then i saved, compiler succeeded
clicked test map, but instead of starting the map the wc3 main screen poppud up (as it normally does when u test map before compiling)
i saved again and compiler didnt find anything again
and still the map didnt want to start
then i tried it in normal wc3 editor and there the compiler found 413 errors, and none of them makes any sense

heres the map:
 

Attachments

  • fun map.w3x
    698.5 KB · Views: 40
Level 7
Joined
Jan 30, 2011
Messages
267
ah ok thx^^
but is there another way to convert handle to unit? maybe like that?
JASS:
function H2U takes handle h returns unit
    local unit u
    return h
    return u
endfunction
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
no, this typecasting was fixed with patch 1.24, the thing why this worked is because compiler only checked the last return and now it chceks all returns trough the function.
Yes JNGP will compile
JASS:
function H2I takes handle h returns integer
    return h
    return 0
endfunction
but it wont run the map
 
Status
Not open for further replies.
Top