hlmod.hu
https://hlmod.hu/

High Ping Kicker hiba
https://hlmod.hu/viewtopic.php?f=9&t=9677
Oldal: 1 / 1

Szerző:  gabeszhun [2013.07.23. 21:35 ]
Hozzászólás témája:  High Ping Kicker hiba

Sziasztok!

A mai napon az alábbi High Ping Kicker probléma jelentkezett:
Kód:
L 07/23/2013 - 01:40:20: Function is not present (function "showWarn") (plugin "hpk.amxx")
L 07/23/2013 - 01:40:20: [AMXX] Run time error 10 (plugin "hpk.amxx") (native "set_task") - debug not enabled!


Az plugin forráskódja:
SMA Forráskód: [ Mindet kijelol ]
  1. /* AMX Mod script
  2.  
  3.  
  4. *
  5. * (c) 2002-2003, DynAstY
  6. * This file is provided as is (no warranties).
  7. *
  8. * Players with immunity won't be checked
  9. */
  10.  
  11. #include <amxmodx>
  12.  
  13. new HIGHPING_MAX = 100 // set maximal acceptable ping
  14. new HIGHPING_TIME = 7 // set in seconds frequency of ping checking
  15. new HIGHPING_TESTS = 2 // minimal number of checks before doing anything
  16.  
  17. new iNumTests[33]
  18.  
  19. public plugin_init() {
  20. register_plugin("High Ping Kicker","1.2.0","DynAstY")
  21. if (HIGHPING_TIME < 15) HIGHPING_TIME = 15
  22. if (HIGHPING_TESTS < 4) HIGHPING_TESTS = 4
  23. return PLUGIN_CONTINUE
  24. }
  25.  
  26. public client_disconnect(id) {
  27. remove_task(id)
  28. return PLUGIN_CONTINUE
  29. }
  30.  
  31. public client_putinserver(id) {
  32. iNumTests[id] = 0
  33. if (!is_user_bot(id)) {
  34. new param[1]
  35. param[0] = id
  36. set_task(30.0, "showWarn", id, param, 1)
  37. }
  38. return PLUGIN_CONTINUE
  39. }
  40.  
  41. kickPlayer(id) {
  42. new name[32]
  43. get_user_name(id, name, 31)
  44. new uID = get_user_userid(id)
  45. server_cmd("banid 1 #%d", uID)
  46. client_cmd(id, "echo ^"Lecsatlakozva a magas pingje miatt!^"; disconnect")
  47. client_print(0, print_chat, "%s lecsatlakoztatva a magas pingje miatt!", name)
  48. return PLUGIN_CONTINUE
  49. }
  50.  
  51. public checkPing(param[]) {
  52. new id = param[0]
  53. if ((get_user_flags(id) & ADMIN_IMMUNITY) || (get_user_flags(id) & ADMIN_RESERVATION)) {
  54. remove_task(id)
  55. client_print(id, print_chat, "Ping ellenorzes letiltva immunity miatt.")
  56. return PLUGIN_CONTINUE
  57. }
  58. new p, l
  59. get_user_ping(id, p, l)
  60. if (p > HIGHPING_MAX)
  61. ++iNumTests[id]
  62. else
  63. if (iNumTests[id] > 0) --iNumTests[id]
  64. if (iNumTests[id] > HIGHPING_TESTS)
  65. kickPlayer(id)
  66. return PLUGIN_CONTINUE
  67. }
  68.  


Mi lehet a hiba?

Előre is köszönöm!

Üdv, gabeszhun

Szerző:  Gatshow [2013.07.23. 21:39 ]
Hozzászólás témája:  Re: High Ping Kicker hiba

ha plugins.ini-be a plugin után odaírod hogy debug akkor kiírja a hibát is. amit ír azt küld el

Szerző:  gabeszhun [2013.07.24. 00:01 ]
Hozzászólás témája:  Re: High Ping Kicker hiba

Bocsi, észre sem vettem, hogy kelll debuggolni.

Kód:
L 07/24/2013 - 00:49:37: [AMXX] Displaying debug trace (plugin "hpk.amxx")
L 07/24/2013 - 00:49:37: [AMXX] Run time error 10: native error (native "set_task")
L 07/24/2013 - 00:49:37: [AMXX]    [0] 1y26hr0p.sma.p::client_putinserver (line 37)
L 07/24/2013 - 00:49:52: Function is not present (function "showWarn") (plugin "hpk.amxx")

Szerző:  Gatshow [2013.07.24. 15:19 ]
Hozzászólás témája:  Re: High Ping Kicker hiba

gabeszhun írta:
Bocsi, észre sem vettem, hogy kelll debuggolni.

Kód:
L 07/24/2013 - 00:49:37: [AMXX] Displaying debug trace (plugin "hpk.amxx")
L 07/24/2013 - 00:49:37: [AMXX] Run time error 10: native error (native "set_task")
L 07/24/2013 - 00:49:37: [AMXX]    [0] 1y26hr0p.sma.p::client_putinserver (line 37)
L 07/24/2013 - 00:49:52: Function is not present (function "showWarn") (plugin "hpk.amxx")


és ilyenkor nem is működik a pluin vagy csak logol?

Szerző:  CrB [2013.07.24. 17:55 ]
Hozzászólás témája:  Re: High Ping Kicker hiba

Próbáld meg így nembizti h menni fog :D
SMA Forráskód: [ Mindet kijelol ]
  1.  
  2. /* AMX Mod script
  3.  
  4.  
  5.   *
  6.   * (c) 2002-2003, DynAstY
  7.   * This file is provided as is (no warranties).
  8.   *
  9.   * Players with immunity won't be checked
  10.   */
  11.  
  12. #include <amxmodx>
  13.  
  14. new HIGHPING_MAX = 100 // set maximal acceptable ping
  15. new HIGHPING_TIME = 7 // set in seconds frequency of ping checking
  16. new HIGHPING_TESTS = 2 // minimal number of checks before doing anything
  17.  
  18. new iNumTests[33]
  19.  
  20. public plugin_init() {
  21. register_plugin("High Ping Kicker","1.2.0","DynAstY")
  22. if (HIGHPING_TIME < 15) HIGHPING_TIME = 15
  23. if (HIGHPING_TESTS < 4) HIGHPING_TESTS = 4
  24. return PLUGIN_CONTINUE
  25. }
  26.  
  27. public client_disconnect(id) {
  28. remove_task(id)
  29. return PLUGIN_CONTINUE
  30. }
  31.  
  32. public client_putinserver(id) {
  33. iNumTests[id] = 0
  34. return PLUGIN_CONTINUE
  35. }
  36.  
  37.  
  38.  
  39. kickPlayer(id) {
  40. new name[32]
  41. get_user_name(id, name, 31)
  42. new uID = get_user_userid(id)
  43. server_cmd("banid 1 #%d", uID)
  44. client_cmd(id, "echo ^"Lecsatlakozva a magas pingje miatt!^"; disconnect")
  45. client_print(0, print_chat, "%s lecsatlakoztatva a magas pingje miatt!", name)
  46. return PLUGIN_CONTINUE
  47. }
  48.  
  49. public checkPing(param[]) {
  50. new id = param[0]
  51. if ((get_user_flags(id) & ADMIN_IMMUNITY) || (get_user_flags(id) & ADMIN_RESERVATION)) {
  52. remove_task(id)
  53. client_print(id, print_chat, "Ping ellenorzes letiltva immunity miatt.")
  54. return PLUGIN_CONTINUE
  55. }
  56. new p, l
  57. get_user_ping(id, p, l)
  58. if (p > HIGHPING_MAX)
  59. ++iNumTests[id]
  60. else
  61. if (iNumTests[id] > 0) --iNumTests[id]
  62. if (iNumTests[id] > HIGHPING_TESTS)
  63. kickPlayer(id)
  64. return PLUGIN_CONTINUE
  65. }
  66.  
  67.  

Szerző:  gabeszhun [2013.07.26. 00:53 ]
Hozzászólás témája:  Re: High Ping Kicker hiba

Gatshow írta:
gabeszhun írta:
Bocsi, észre sem vettem, hogy kelll debuggolni.

Kód:
L 07/24/2013 - 00:49:37: [AMXX] Displaying debug trace (plugin "hpk.amxx")
L 07/24/2013 - 00:49:37: [AMXX] Run time error 10: native error (native "set_task")
L 07/24/2013 - 00:49:37: [AMXX]    [0] 1y26hr0p.sma.p::client_putinserver (line 37)
L 07/24/2013 - 00:49:52: Function is not present (function "showWarn") (plugin "hpk.amxx")


és ilyenkor nem is működik a pluin vagy csak logol?


Nem működött, sőt... A szervert is kifagyasztotta :lol:

crazyboy írta:
Próbáld meg így nembizti h menni fog :D
SMA Forráskód: [ Mindet kijelol ]
  1.  
  2. /* AMX Mod script
  3.  
  4.  
  5.   *
  6.   * (c) 2002-2003, DynAstY
  7.   * This file is provided as is (no warranties).
  8.   *
  9.   * Players with immunity won't be checked
  10.   */
  11.  
  12. #include <amxmodx>
  13.  
  14. new HIGHPING_MAX = 100 // set maximal acceptable ping
  15. new HIGHPING_TIME = 7 // set in seconds frequency of ping checking
  16. new HIGHPING_TESTS = 2 // minimal number of checks before doing anything
  17.  
  18. new iNumTests[33]
  19.  
  20. public plugin_init() {
  21. register_plugin("High Ping Kicker","1.2.0","DynAstY")
  22. if (HIGHPING_TIME < 15) HIGHPING_TIME = 15
  23. if (HIGHPING_TESTS < 4) HIGHPING_TESTS = 4
  24. return PLUGIN_CONTINUE
  25. }
  26.  
  27. public client_disconnect(id) {
  28. remove_task(id)
  29. return PLUGIN_CONTINUE
  30. }
  31.  
  32. public client_putinserver(id) {
  33. iNumTests[id] = 0
  34. return PLUGIN_CONTINUE
  35. }
  36.  
  37.  
  38.  
  39. kickPlayer(id) {
  40. new name[32]
  41. get_user_name(id, name, 31)
  42. new uID = get_user_userid(id)
  43. server_cmd("banid 1 #%d", uID)
  44. client_cmd(id, "echo ^"Lecsatlakozva a magas pingje miatt!^"; disconnect")
  45. client_print(0, print_chat, "%s lecsatlakoztatva a magas pingje miatt!", name)
  46. return PLUGIN_CONTINUE
  47. }
  48.  
  49. public checkPing(param[]) {
  50. new id = param[0]
  51. if ((get_user_flags(id) & ADMIN_IMMUNITY) || (get_user_flags(id) & ADMIN_RESERVATION)) {
  52. remove_task(id)
  53. client_print(id, print_chat, "Ping ellenorzes letiltva immunity miatt.")
  54. return PLUGIN_CONTINUE
  55. }
  56. new p, l
  57. get_user_ping(id, p, l)
  58. if (p > HIGHPING_MAX)
  59. ++iNumTests[id]
  60. else
  61. if (iNumTests[id] > 0) --iNumTests[id]
  62. if (iNumTests[id] > HIGHPING_TESTS)
  63. kickPlayer(id)
  64. return PLUGIN_CONTINUE
  65. }
  66.  
  67.  


Hálás köszönetem! 8-)

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/