找回密码
 点一下
查看: 709|回复: 2

这个报错是为什么啊?

[复制链接]
发表于 2010-3-21 13:09:58 | 显示全部楼层 |阅读模式
function Trig_Drop_DropItem_S takes location point returns nothing
    local integer tmp = GetRandomInt(0, 99)
    if ( tmp == 0 ) then
        call Trig_Drop_DropItem_S1(point)
    elseif ( tmp < 10 ) then
        call Trig_Drop_DropItem_S2(point)
    elseif ( tmp < 30 ) then
        call Trig_Drop_DropItem_S3(point)
    elseif ( tmp < 80 ) then
        call Trig_Drop_DropItem_S4(point)
    else
        call Trig_Drop_DropItem_S5(point)
    endif
endfunction

function Trig_Drop_DropItem_S1 takes location point returns nothing
XXXXXXXX
endfunction

call Trig_Drop_DropItem_S1(point)这句
报错 undeclare  Trig_Drop_DropItem_S1(point)
发表于 2010-3-21 14:00:47 | 显示全部楼层
把两个函数位子换一下。
回复

使用道具 举报

 楼主| 发表于 2010-3-21 15:18:49 | 显示全部楼层
谢谢LS!
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-10-6 03:53 , Processed in 0.038425 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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