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

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: 42
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