|
function Math takes nothing returns nothing
local integer math=4
local integer math2=0
loop
exitwhen math==0
if math2==0 then
call DisplayTextToPlayer(Player(0),0,0,I2S(math2))
math2=math2+1
elseif math2 ==1 then
call DisplayTextToPlayer(Player(0),0,0,I2S(math2))
math2=math2+1
elseif math2==2 then
call DisplayTextToPlayer(Player(0),0,0,I2S(math2))
math2=math2+1
elseif math2==3 then
call DisplayTextToPlayer(Player(0),0,0,I2S(math2))
math2=math2+1
elseif math2==4 then
call DisplayTextToPlayer(Player(0),0,0,I2S(math2))
math2=0
endif
set math==math-1
endloop
endfunction
本人最近学习JASS。。测试一个按下ESC显示1-4的JASS,,结果错误了。。求解。 |
|