找回密码
 点一下
查看: 1493|回复: 3

高手进来看下为什么这J不能运行

[复制链接]
发表于 2008-4-10 22:01:15 | 显示全部楼层 |阅读模式
[codes=jass]function Trig_Spell_Conditions takes nothing returns boolean
    if ( not ( GetSpellAbilityId() == 'AHtc' ) ) then
        return false
    endif
    return true
endfunction
function trg_start takes nothing returns nothing
    local timer t = GetExpiredTimer()
    local unit h = I2U(GetStoredInteger(udg_GC,I2S(H2I(t)),"HERO"))
    call DestroyEffect( AddSpecialEffectTarget("Objects\\Spawnmodels\\NightElf\\NECancelDeath\\NECancelDeath.mdl", h, "origin") )
endfunction
function trg_really takes nothing returns nothing
    local timer t = CreateTimer()
    local unit u = GetTriggerUnit()
    call StoreInteger(udg_GC, I2S(h2i(t)), "HERO", h2i(u))
    call TimerStart(t,1.0,true, function trg_start)
    set t = null
endfunction
function InitTrig_Spell takes nothing returns nothing
    set gg_trg_Spell = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Spell, EVENT_PLAYER_UNIT_SPELL_EFFECT )
    call TriggerAddCondition( gg_trg_Spell, Condition( function Trig_Spell_Conditions ) )
endfunction[/codes]
 楼主| 发表于 2008-4-10 22:02:43 | 显示全部楼层
里面说这句是错误名字??!!
[codes=jass]call StoreInteger(udg_GC, I2S(h2i(t)), "HERO", h2i(u))[/codes]
回复

使用道具 举报

发表于 2008-4-10 22:10:41 | 显示全部楼层
你的函数中怎么又有H2I又有h2i啊………………
大小写要区分清楚额
回复

使用道具 举报

发表于 2008-4-10 22:10:58 | 显示全部楼层
H2I 和 h2i 是有区别的。。。。。。。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-5-23 01:13 , Processed in 0.036763 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表