搜索
查看: 1891|回复: 4

插件运行错误

[复制链接]
发表于 2009-10-8 11:05:21 | 显示全部楼层 |阅读模式 来自 广东深圳
L 09/30/2009 - 17:41:30: [AMXX] Run time error 4 (plugin "amx_round7s.amxx") - debug not enabled!
L 09/30/2009 - 17:41:30: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
  1. #include <amxmodx>
  2. #include <fakemeta>
  3. #include <hamsandwich>

  4. new check[33] = 0

  5. #define X_POS -1.0
  6. #define Y_POS 0.4
  7. #define HOLE_TIME 7.0

  8. public plugin_init()
  9. {
  10.         register_plugin("block player","1.0","anzzy")
  11.         RegisterHam(Ham_Spawn, "player", "Player_Spawn", 1)
  12.         register_logevent("EventRoundStart", 2, "1=Round_Start")
  13.         register_event("TextMsg", "eStart_Game", "a", "2=#Game_Commencing", "2=#Game_will_restart_in")
  14. }

  15. public EventRoundStart(id)
  16. {
  17.         if(check[id] == 1)
  18.                 return PLUGIN_HANDLED
  19.         
  20.         set_pev(id, pev_flags, pev(id,pev_flags) | FL_FROZEN)
  21.         client_print(id,print_center,"^x04[提示]^x03首局前7秒禁止移动")
  22.         set_task(7.0,"remove",id)
  23.         return PLUGIN_CONTINUE
  24. }

  25. public Player_Spawn(id)
  26. {
  27.         if(check[id]==1)
  28.                 return PLUGIN_HANDLED
  29.         
  30.         set_task(1.0,"checks",id)
  31.         client_print(id,print_center,"^x04[提示]^x03首局前7秒禁止移动")
  32.         return PLUGIN_CONTINUE
  33. }

  34. public checks(id)
  35. {
  36.         if(!is_user_alive(id))
  37.                 return PLUGIN_HANDLED
  38.         set_pev(id, pev_flags, pev(id,pev_flags) | FL_FROZEN)
  39.         set_task(6.0,"remove",id)
  40.         return PLUGIN_CONTINUE
  41. }

  42. public remove(id)
  43. {
  44.         new flags = pev(id,pev_flags)
  45.         flags &= ~FL_FROZEN
  46.         set_pev(id,pev_flags,flags)
  47.         check[id] = 1
  48. }

  49. public client_putinserver(id)
  50. {
  51.         if (is_user_alive(id))
  52.                 check[id] = 0
  53. }

  54. public client_disconnect(id)
  55. {
  56.         remove_task(id)
  57.         check[id] = 0
  58. }

  59. public eStart_Game(id)
  60. {
  61.         check[id] = 0
  62. }
复制代码
发表于 2009-10-8 11:33:55 | 显示全部楼层 来自 江西萍乡
这个插件用来做什么的 说明下了
回复

使用道具 举报

 楼主| 发表于 2009-10-8 12:06:56 | 显示全部楼层 来自 广东深圳
=,= SXE防暴力. 进去的第一局会卡7秒..防止暴力
回复

使用道具 举报

发表于 2009-10-8 14:21:12 | 显示全部楼层 来自 台湾
你加上DEBUG
這樣才能知道哪個部份出錯
回复

使用道具 举报

 楼主| 发表于 2009-10-9 18:58:37 | 显示全部楼层 来自 广东深圳
就是加上了debug才显示这个..但是很奇怪..没显示那部分错误..其他插件错误都有显示
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

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