|
发表于 2010-11-12 21:46:21
|
显示全部楼层
点变量你看了 我可没有改........
[jass]function B takes nothing returns nothing
local location loc
local timer t = LoadTimerHandle(udg_HT, GetHandleId(GetExpiredTimer()),0)
set loc=Location(0,0)
call SaveLocationHandle(udg_HT,0,0,loc)
call RemoveLocation(loc)
call PauseTimer(t)
call DestroyTimer(t)
call BJDebugMsg( "2" )
set loc=null
set t=null
call BJDebugMsg( "1" )
call SaveLocationHandle(udg_HT,0,0,loc)
endfunction[/jass]
即使去掉IF 设置null 后再存空值 也不会报错.....
我试了 连续输入没报错...... |
|