|
- function H2I takes handle h returns integer
- return h
- return 0
- endfunction
- function I2U takes integer i returns unit
- return i
- return null
- endfunction
- function cache2 takes nothing returns nothing
- local unit ua = I2U(GetStoredInteger(udg_GC, I2S(H2I(ua)), "hero"))
- local unit ub = I2U(GetStoredInteger(udg_GC, I2S(H2I(ua)), "target"))
- local integer i = GetStoredInteger(udg_GC, I2S(H2I(ua)), "target")
- endfunction
- function cache1 takes unit ua,unit ub,integer i returns nothing
- call StoreInteger(udg_GC, I2S(H2I(ua)), "hero", H2I(ua))
- call StoreInteger(udg_GC, I2S(H2I(ua)), "target", H2I(ub))
- call StoreInteger(udg_GC, I2S(H2I(ua)), "lv", i)
- endfunction
复制代码
为什么,我在 JassCraft 里检查语法的时候是没出错的!,但为是复制到 WE里!然后保存或者测试游戏,为什么 他会弹错 说 “cache2”里的 是错误名字!! |
|