ad406998554
|
分享:
▼
x0
|
[1.6][插件] 我自己写的插件有问题
今天我自己用ACG写了一个"人类或僵尸胜利时显示人类或僵尸胜利的SPR",插件能编译得出但是我放进游戏里后没有效果(就像没添加这个插件一样),求各位大大帮忙看看哪里写错了,具体教我改一改
控制台显示: L 05/03/2012 - 17:32:10: [ACG] Player out of range (0) L 05/03/2012 - 17:32:10: [AMXX] Run time error 10 (plugin "win.amxx") (native "acg_drawsprdefined") - debug not enabled! L 05/03/2012 - 17:32:10: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
插件源码: #include <amxmodx> #include <zombieplague> #include <acg> #define PLUGIN "Roundended" #define VERSION "1.0" #define AUTHOR "ad406998554" public zp_round_ended(winteam) { if(winteam != WIN_ZOMBIES) { winteam = WIN_HUMANS acg_drawsprdefined(0, "win_human", 255, 255, 255, 0.5, 0.3, 1,FX_FADE, 1.0, 2.0, 0, 2.0, DRAW_ADDITIVE, -1) } else { acg_drawsprdefined(0, "win_zombie", 255, 255, 255, 0.5, 0.3, 1,FX_FADE, 1.0, 2.0, 0, 2.0, DRAW_ADDITIVE, -1) } }
本帖包含附件 |
|
acg.txt
(2022-06-09 14:19 / 14 KB) 說明: ACG模块 |
下載次數: | 5 |
|
|
x0
[樓 主]
From:廣西 | Posted:2012-05-03 17:53 |
|
|
HiNess
|
分享:
▲
▼
複製程式
for (new id=1; id<=get_maxplayers(); id++)
{
if (!is_user_connected(id)) continue
acg_drawsprdefined(id, "win_human", 255, 255, 255, 0.5, 0.3, 1,FX_FADE, 1.0, 2.0, 0, 2.0, DRAW_ADDITIVE, -1)
}
|
|
x0
[3 樓]
From:未知地址 | Posted:2012-05-03 19:45 |
|
|
ad406998554
|
分享:
▲
下面是引用 HiNess 于 2012-05-03 19:45 发表的 : 複製程式
for (new id=1; id<=get_maxplayers(); id++){ if (!is_user_connected(id)) continue acg_drawsprdefined(id, "win_human", 255, 255, 255, 0.5, 0.3, 1,FX_FADE, 1.0, 2.0, 0, 2.0, DRAW_ADDITIVE, -1)} 我知道了,谢谢两位大大指点
|
|
x0
[4 樓]
From:未知地址 | Posted:2012-05-03 21:05 |
|
|
|