expected returns struct

Azureus

New Member
Reaction score
0
If anyone there still developing maps or just came around the Warcraft Zone.
Here is the question. I have a buff system using struct and hashtable, I found that quite efficient in terms of performance. But JassHelper would just say expected "Returns" pointing on that piece of code^
JASS:
function saveHash takes buffStr returns nothing
SaveInteger(udg_buffTable,GetHandleId(.u),.ba,buffStr)
endfunction

Here is a whole code for reference
JASS:
struct buffStr
unit u
timer t
real dur
integer ba //buffAbility

static method create takes unit whichUnit, real howLong, integer buffAbility returns buffStr

local buffStr bs = buffStr.allocate()
set bs.u = whichUnit
set bs.t = CreateTimer()
set bs.ba = buffAbility
set bs.dur = howLong
call TimerStart(bs.t,howLong,false,function removeBuff)

return bs
endmethod

endstruct

function saveHash takes buffStr returns nothing
SaveInteger(udg_buffTable,GetHandleId(.u),.ba,buffStr)
endfunction
 

jonas

You can change this now in User CP.
Reaction score
64
Code:
function saveHash takes buffStr s returns nothing
    call SaveInteger(udg_buffTable,GetHandleId(s.u),s.ba,buffStr)
endfunction
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top