|
[codes=jass]function CreatTextTag takes string s,location p,real c1,real c2,real c3 returns nothing
local texttag tt
call CreateTextTagLocBJ( s, p, 0, 10, c1, c2, c3, 0 )
call RemoveLocation(p)
call SetTextTagVelocityBJ( GetLastCreatedTextTag(), 64, 90 )
call SetTextTagPermanent( GetLastCreatedTextTag(), false )
set tt = GetLastCreatedTextTag()
call PolledWait(25)
call DestroyTextTag( tt )
endfunction[/codes]
写了这样的函数测试颜色的数值(一下是调用函数的触发,直接用T转的!)
[codes=jass] set udg_i = 0
set udg_s = I2S(udg_i)
set udg_p = GetRectCenter(GetPlayableMapRect())
call CreatTextTag(udg_s,udg_p,100,50,0)
call DisplayTextToPlayer( Player(0), 0, 0, udg_s )
call PolledWait( 1.00 )
set udg_i = ( udg_i + 1 )
set udg_s = I2S(udg_i)
call CreatTextTag(udg_s,udg_p,100,0,0)
call DisplayTextToPlayer( Player(0), 0, 0, udg_s )[/codes]
运行后只出来一个漂浮文字0,后面的动作都直接跳过了!
连第一个DisplayTextToPlayer都不能显示出来!
请问是什么问题? |
|