|
[jass]
function DamShow takes unit target,real damage returns nothing
local texttag dmshow = null
set dmshow = CreateTextTagUnitBJ(I2S(R2I(damage)),target,0,8,100,95.0,0.0,0.0)
call SetTextTagPermanent(dmshow, false)
call SetTextTagLifespan(dmshow,5)
call SetTextTagVelocity(dmshow,90.0,90)
set dmshow = null
call BJDebugMsg("have read")
endfunction
[/jass]
[jass]
function DamShow takes unit target,real damage returns nothing
local texttag dmshow
set dmshow = CreateTextTagUnitBJ(I2S(R2I(damage)),target,0,8,100,95.0,0.0,0.0)
call SetTextTagPermanent(dmshow, true)
call SetTextTagLifespan(dmshow,5)
call SetTextTagVelocity(dmshow,90.0,90)
set dmshow = null
call BJDebugMsg("have read")
endfunction
[/jass]
这两个函数不同之处就是call SetTextTagPermanent(dmshow, true)红字部分和dmshow的初始化,但是我认为除了红字部分之外,初始化方面没有什么问题.
但始现在这个函数的问题是只能显示have read,却不能显示damage对此我相当困惑;两个都是这样的.
我不知道我的问题出现在哪里. |
|