找回密码
 点一下
查看: 1055|回复: 8

局域数组

[复制链接]
发表于 2009-5-9 19:09:26 | 显示全部楼层 |阅读模式
局域数组无法声明么?
怎么老是报错
像local location array udg_l这种
发表于 2009-5-9 19:14:29 | 显示全部楼层
额……
应该没有问题吧,不加udg_呢?
回复

使用道具 举报

 楼主| 发表于 2009-5-9 19:16:55 | 显示全部楼层
[jass]

globals
location array udg_l
integer array udg_i
endglobals
function H2I takes handle h returns integer
return h
return 0
endfunction
function I2H takes integer i returns handle
return i
return null
endfunction
function a takes nothing returns nothing
local location array udg_l
local integer array udg_i
local location udg_locat
set udg_locat = Location(0,0)
call DisplayTimedTextToPlayer(Player(1),0,0,60,I2S(H2I(udg_locat)))
set udg_l [0] = udg_locat
call DisplayTimedTextToPlayer(Player(1),0,0,60,I2S(udg_i[0]))
endfunction
[/jass]
想研究下UNIONBUG的数组版
没udg不行呢
结果老报错
用的是WOW8的二版WE
回复

使用道具 举报

 楼主| 发表于 2009-5-9 19:24:56 | 显示全部楼层
果然是UDG的问题呢
回复

使用道具 举报

发表于 2009-5-9 19:28:25 | 显示全部楼层
数组可以用UNBUG么?
回复

使用道具 举报

 楼主| 发表于 2009-5-9 19:31:17 | 显示全部楼层
我就是想知道才想测试下的
结果报错……
恩恩
谁给我个能修改globals的WE
回复

使用道具 举报

发表于 2009-5-9 19:34:23 | 显示全部楼层
直接解压了j文件写了压进去好了
回复

使用道具 举报

发表于 2009-5-9 19:43:42 | 显示全部楼层
不是udg的问题而是共用空间的问题~~如果你不声明同名变量是不会报错的~~

你想都共用空间了还如何数组~~
回复

使用道具 举报

 楼主| 发表于 2009-5-9 20:19:34 | 显示全部楼层
那么说数组不存在Unionbug?
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-7-21 22:30 , Processed in 0.033478 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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