广告广告
  加入我的最爱 设为首页 风格修改
首页 首尾
 手机版   订阅   地图  繁体 
您是第 1359 个阅读者
 
发表文章 发表投票 回覆文章
  可列印版   加为IE收藏   收藏主题   上一主题 | 下一主题   
lichen
数位造型
个人文章 个人相簿 个人日记 个人地图
初露锋芒
级别: 初露锋芒 该用户目前不上站
推文 x42 鲜花 x95
分享: 转寄此文章 Facebook Plurk Twitter 复制连结到剪贴簿 转换为繁体 转换为简体 载入图片
推文 x0
[1.6][插件] zp_zclass_executioner.sma   debug  (已解决)
public event_player_death() g_bExecutioner[read_data(2)] = false[/pre]此行报错 如何修改?[/pre]


[ 此文章被lichen在2011-02-24 18:40重新编辑 ]


献花 x0 回到顶端 [楼 主] From:没有资料 | Posted:2011-02-08 21:55 |
lichen
数位造型
个人文章 个人相簿 个人日记 个人地图
初露锋芒
级别: 初露锋芒 该用户目前不上站
推文 x42 鲜花 x95
分享: 转寄此文章 Facebook Plurk Twitter 复制连结到剪贴簿 转换为繁体 转换为简体 载入图片
Re:lag报错显示,|zp_zclass_executioner.sma   debug
02/08/2011 - 21:38:56: [AMXX] Displaying debug trace (plugin "zp_zclass_executioner.amxx")
L 02/08/2011 - 21:38:56: [AMXX] Run time error 4: index out of bounds
L 02/08/2011 - 21:38:56: [AMXX]   [0] zp_zclass_executioner.sma::event_player_death (line 92)
L 02/08/2011 - 21:39:42: [AMXX] Displaying debug trace (plugin "zp_zclass_executioner.amxx")
L 02/08/2011 - 21:39:42: [AMXX] Run time error 4: index out of bounds
L 02/08/2011 - 21:39:42: [AMXX]   [0] zp_zclass_executioner.sma::event_player_death (line 92)
L 02/08/2011 - 21:40:01: [AMXX] Displaying debug trace (plugin "zp_zclass_executioner.amxx")
L 02/08/2011 - 21:40:01: [AMXX] Run time error 4: index out of bounds
L 02/08/2011 - 21:40:01: [AMXX]   [0] zp_zclass_executioner.sma::event_player_death (line 92)
L 02/08/2011 - 21:41:40: [AMXX] Displaying debug trace (plugin "zp_zclass_executioner.amxx")
L 02/08/2011 - 21:41:40: [AMXX] Run time error 4: index out of bounds
L 02/08/2011 - 21:41:40: [AMXX]   [0] zp_zclass_executioner.sma::event_player_death (line 92)
这是报错.. 第92报错是因为未缩进代码?
但是我缩进了啊 怎么还是报错啊...


献花 x0 回到顶端 [1 楼] From:没有资料 | Posted:2011-02-08 21:56 |
i-c0112
个人头像
个人文章 个人相簿 个人日记 个人地图
小有名气
级别: 小有名气 该用户目前不上站
推文 x6 鲜花 x194
分享: 转寄此文章 Facebook Plurk Twitter 复制连结到剪贴簿 转换为繁体 转换为简体 载入图片

满明显的问题
阵列索引值超出阵列宣告时的大小
复制程式
public event_player_death() g_bExecutioner[read_data(2)] = false
改为
复制程式
public event_player_death()
{
    new id = read_data(2)
    if (1 <= id <= g_iMaxPlayers)
        g_bExecutioner[id] = false
}


献花 x0 回到顶端 [2 楼] From:台湾中华电信 | Posted:2011-02-08 22:04 |
lichen
数位造型
个人文章 个人相簿 个人日记 个人地图
初露锋芒
级别: 初露锋芒 该用户目前不上站
推文 x42 鲜花 x95
分享: 转寄此文章 Facebook Plurk Twitter 复制连结到剪贴簿 转换为繁体 转换为简体 载入图片

谢谢啦
十分感谢..


献花 x1 回到顶端 [3 楼] From:没有资料 | Posted:2011-02-08 22:13 |

首页  发表文章 发表投票 回覆文章
Powered by PHPWind v1.3.6
Copyright © 2003-04 PHPWind
Processed in 0.014897 second(s),query:16 Gzip disabled
本站由 瀛睿律师事务所 担任常年法律顾问 | 免责声明 | 本网站已依台湾网站内容分级规定处理 | 连络我们 | 访客留言