OneBadPsycho
Last Activity:
Mar 17, 2018
Joined:
Jun 15, 2007
Messages:
594
Trophy Points:
128
Positive ratings received:
93
Neutral ratings received:
0
Negative ratings received:
0

Post Ratings

Received: Given:
Like 93 10
Dislike 0 0
Agree 0 0
Disagree 0 0
Funny 0 0
Winner 0 0
Informative 0 0
Friendly 0 0
Useful 0 0
Optimistic 0 0
Creative 0 0
Old 0 0
Bad Spelling 0 0
Dumb 0 0
Location:
Denmark

Share This Page

OneBadPsycho

10100111001, from Denmark

OneBadPsycho was last seen:
Mar 17, 2018
    1. tooltiperror
      tooltiperror
      Sure, send it.
    2. tooltiperror
      tooltiperror
      Waits should be banned. Forever. But, if you want to transfer data with timers, use Key Timers 2.

      [JASS]//Untested:
      library loltimers initializer onInit requires KT
      globals
      endglobals
      struct Data
      integer key
      private static method create takes nothing returns thistype
      local thistype this=thistype.create()
      return this
      endstruct
      private function callback takes nothing returns boolean
      local Data data=KT_GetData()
      call BJDebugMsg(I2S(data.key))
      // Shows you 0 :)
      return true
      endfunction
      private function onInit takes nothing returns nothing
      local Data data=Data.create()
      set data.key=0
      call KT_StoreData(3.00,data,function callback)
      endfunction
      endlibrary[/JASS]
    3. tooltiperror
      tooltiperror
      Yeah, be careful though, if you're using waits, I think it can bug, not sure. You can also use [LJASS]GetHandleId(GetExpritingTimer())[/LJASS] or something similar to that to achieve MUI struct storage.
  • Loading...
  • Loading...
  • About

    Location:
    Denmark