|
晚上在写数组绑定系统时``
遇到一些bug
试了好几次...发现原因..真是囧掉了
按Esc显示文本
udg_ABC和udg_i 是全局 大家猜下结果是如何```
[jass]
function Trig________________u_Actions takes nothing returns nothing
local integer udg_ABC=1
local integer udg_i=2
local integer udg_abc=3
local integer udG_Abc=4
local integer udg_aBc=5
local integer Udg_abC=6
local integer udg_ABc=7
local integer udg_AbC=8
local integer uDg_ABC=9
local integer udg_aBC=10
local integer UDG_abc=11
local integer UdG_I=12
call DisplayTextToPlayer( Player(0), 0, 0, "udg_ABC=1 = "+I2S(udg_ABC))
call DisplayTextToPlayer( Player(0), 0, 0, "udg_i=2 = "+I2S(udg_i))
call DisplayTextToPlayer( Player(0), 0, 0, "udg_abc=3 = "+I2S(udg_abc))
call DisplayTextToPlayer( Player(0), 0, 0, "udG_Abc=4 = "+I2S(udG_Abc))
call DisplayTextToPlayer( Player(0), 0, 0, "udg_aBc=5 = "+I2S(udg_aBc))
call DisplayTextToPlayer( Player(0), 0, 0, "Udg_abC=6 = "+I2S(Udg_abC))
call DisplayTextToPlayer( Player(0), 0, 0, "udg_ABc=7 = "+I2S(udg_ABc))
call DisplayTextToPlayer( Player(0), 0, 0, "udg_AbC=8 = "+I2S(udg_AbC))
call DisplayTextToPlayer( Player(0), 0, 0, "uDg_ABC=9 = "+I2S(uDg_ABC))
call DisplayTextToPlayer( Player(0), 0, 0, "udg_aBC=10 = "+I2S(udg_aBC))
call DisplayTextToPlayer( Player(0), 0, 0, "UDG_abc=11 = "+I2S(UDG_abc))
call DisplayTextToPlayer( Player(0), 0, 0, "UdG_I=12 = "+I2S(UdG_I))
endfunction
//===========================================================================
function InitTrig________________u takes nothing returns nothing
set gg_trg________________u = CreateTrigger( )
call TriggerRegisterPlayerEvent(gg_trg________________u, Player(0), EVENT_PLAYER_END_CINEMATIC)
call TriggerAddAction( gg_trg________________u, function Trig________________u_Actions )
endfunction
[/jass]
..结果 显示的数值都是 最后定义的那个变量````
竟然大小写都忽略了......
翻了下以前提到Union Bug 的文章似乎也都没 发现``` |
评分
-
查看全部评分
|