Convert code to 1.24b

Angel_Island

Much long, many time, wow
Reaction score
56
How do i make these functions 1.24b compatible?

JASS:

function I2T takes integer i returns timer
    return i
    return null
endfunction

function I2Img takes integer i returns image
    return i
    return null
endfunction

function I2U takes integer i returns unit
    return i
    return null
endfunction

function I2Cnd takes integer i returns conditionfunc
    return i
    return null
endfunction

function I2Trg takes integer i returns trigger
    return i
    return null
endfunction
 

Azlier

Old World Ghost
Reaction score
461
Well, this should work. PJass (I think) doesn't like it, though.

You shouldn't be using I2H anyway. It's unsafe.
JASS:
function ReturnInteger takes integer i returns integer
    return i
endfunction

function I2T takes integer i returns timer
    call ReturnInteger(i)
    if false then
        return null
    endif
endfunction

function I2Img takes integer i returns image
    call ReturnInteger(i)
    if false then
        return null
    endif
endfunction

function I2U takes integer i returns unit
    call ReturnInteger(i)
    if false then
        return null
    endif
endfunction

function I2Cnd takes integer i returns conditionfunc
    call ReturnInteger(i)
    if false then
        return null
    endif
endfunction

function I2Trg takes integer i returns trigger
    call ReturnInteger(i)
    if false then
        return null
    endif
endfunction
 

kingkingyyk3

Visitor (Welcome to the Jungle, Baby!)
Reaction score
216
Well, this should work.
Weird, it does not work for me.
The returned stuff is not null nor I2x value, but it has a handle id of 0.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top