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

一個錯誤的jass(該貼已廢)

[复制链接]
发表于 2009-8-15 11:14:48 | 显示全部楼层 |阅读模式
[trigger]
function CreateUnit takes player P,integer Uid,location point,integer angel,location targetpoint,integer num returns nothing
    local unit u
    local integer i
    loop
        set i=i+1
        exitwhen i>num
        set u=CreateUnitAtLoc(P,Uid,point,angel)
        call IssuePointOrderLoc( GetLastCreatedUnit(), "patrol", targetpoint )
        set u=null
    endloop
    call RemoveLocation( point )    
    call RemoveLocation( targetpoint )
endfunction
[/trigger]
 楼主| 发表于 2009-8-15 11:21:56 | 显示全部楼层

是不是不能function CreateUnit
貌似CreateUnit是系统原设的函数名。。。。
回复

使用道具 举报

发表于 2009-8-15 11:27:16 | 显示全部楼层
CreateUnit是CJ函数………………

jass不支持重载的
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-4 09:05 , Processed in 0.044061 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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