引用 | 編輯
ad406998554
2012-05-03 17:53 |
樓主
▼ |
||||||||||||
x0
今天我自己用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) } }
x0
|
引用 | 編輯
ad406998554
2012-05-03 19:15 |
2樓
▲ ▼ |
引用 | 編輯
HiNess
2012-05-03 19:45 |
3樓
▲ ▼ |
複製程式
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 |
引用 | 編輯
ad406998554
2012-05-03 21:05 |
4樓
▲ |
下面是引用 HiNess 于 2012-05-03 19:45 发表的 : 複製程式我知道了,谢谢两位大大指点 x0 |