[jass]
globals
  gamecache GC = null
  endglobals
 
function CacheValue takes nothing returns gamecache
  if GC == null then
  call FlushGameCache(InitGameCache("wow8"))
  set GC = InitGameCache("wow8")
  endif
  return GC
  endfunction
 
function H2I takes handle h returns integer
  return h
  return 0
  endfunction
 
function I2Tm takes integer i returns timer
  return i
  return null
  endfunction
 
function SetInt takes string s1 , string s2 , integer i returns nothing
  call StoreInteger(CacheValue(),s1,s2,i)
  endfunction
 
function GetInt takes string s1 , string s2 returns integer
  return GetStoredInteger(CacheValue(),s1,s2)
  endfunction
function a takes nothing returns nothing
  local integer t = H2I(GetExpiredTimer())
  local timer time = I2Tm(GetInt(I2S(t),"time"))
  call DisplayTextToPlayer(Player(0),0,0,"function")
  call PauseTimer(time)
  call PolledWait(0.01)
  call DisplayTextToPlayer(Player(0),0,0,"hello world")
  endfunction
function InitTrig_A takes nothing returns nothing
  local integer t = H2I(CreateTimer())
  call SetInt(I2S(t),"time",t)
  call TimerStart(I2Tm(t),5.00,true,function a)
  endfunction
[/jass]
我只是想问问为什么在 PauseTimer()后加上PolledWait()就不会再执行代码了...
除了PolledWait()还有哪些等待呢?
排泄什么什么的其他细节...都省略掉了....
 
   |