|
楼主 |
发表于 2008-2-26 13:48:14
|
显示全部楼层
[codes=jass]function YouGuanPaiXie_Actions takes nothing returns nothing
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "学习JASS" )
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function YouGuanPaiXie takes nothing returns nothing
local trigger trig = CreateTrigger( )
local triggeraction trigact = TriggerAddAction( trig, function YouGuanPaiXie_Actions )
call TriggerRegisterTimerEventSingle( trig, 2.00 )
set trig = null
set trigact = null
endfunction
//=======================================================
call TriggerRemoveAction(trig, function YouGuanPaiXie_Actions)
function YouGuanPaiXie_Actions takes nothing returns nothing
call QuestMessageBJ( GetPlayersAll(), bj_QUESTMESSAGE_UPDATED, "学习JASS" )
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function YouGuanPaiXie takes nothing returns nothing
local trigger trig = CreateTrigger( )
call TriggerRegisterTimerEventSingle( trig, 2.00 )
call TriggerAddAction( trig, function YouGuanPaiXie_Actions )
call TriggerRemoveAction(trig, function YouGuanPaiXie_Actions)
set trig = null
endfunction
//=======================================================
[/codes]
是不是这两种排泄方法都可以?
上面那个泄露是我理解错了
谢谢Renee大人 |
|