HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Return bug for locations

04-01-2007, 03:31 PM#1
akolyt0r
Is there a way to use the return bug for locations beside saving the Xs and Ys of the locations ?
Itried this .. but it didnt work
Collapse JASS:
function L2I takes location l returns integer
return l
return 0
endfunction

function I2L takes integer i returns location
return i
return null
endfunction
04-01-2007, 03:35 PM#2
Fireeye
I think you want this function, at least they work for me
Collapse JASS:
function H2I takes handle h returns integer
    return h
    return 0
endfunction
Collapse JASS:
function I2Loc takes integer i returns location
    return i
    return null
endfunction
04-01-2007, 03:51 PM#3
akolyt0r
Quote:
Originally Posted by Fireeye
I think you want this function, at least they work for me
Collapse JASS:
function H2I takes handle h returns integer
    return h
    return 0
endfunction
Collapse JASS:
function I2Loc takes integer i returns location
    return i
    return null
endfunction


functions H2I & I2H work for sure ...
but teh function I2Loc & Loc2I didnt work for me -.-
im using Xs and Ys now ..