Hi, I tried to ressurrect a 5 yr. old map and after asking in some forum I realised I can't do it without knowing a bit of coding. It seems there isn't an "easy formula" to fix the return bugs.
The map only has 1 return bug (i think) and is the following:
Well, questions:
Can someone fix it for me? or
Where can I start looking for a solution?
The map only has 1 return bug (i think) and is the following:
JASS:
function C9 takes unit da,integer dA returns integer
local integer db
local item dB
set db=0
loop
set dB=UnitItemInSlot(da,db)
if(dB!=null)and(GetItemTypeId(dB)==dA)then
set dB=null
return db+1
endif
set db=db+1
exitwhen db>=6
endloop
set dB=null
return 0
endfunction
Well, questions:
Can someone fix it for me? or
Where can I start looking for a solution?