←  Problemy z pluginami

AMXX.pl: Support AMX Mod X i SourceMod

»

AMXBANS - Problem


Best Answer Rivit 24.12.2020 11:26

Zwiększyć bufory trzeba po prostu.

Tekst po replace przekracza romiar bufora, co jest całkiem normalne jeśli się nie poduma wcześniej i nie ustawi większego bufora.

 

 

Go to the full post

  • +
  • -
_.-*`PaniQ*-._'s Photo _.-*`PaniQ*-._ 11.12.2020

Witam, kiedy dodałem amxbans na serwer, wyskakuje mi taki oto log:

 

L 12/11/2020 - 14:59:46: replace() buffer not big enough (60>=59)
L 12/11/2020 - 14:59:46: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "replace") - debug not enabled!
L 12/11/2020 - 14:59:46: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

 


Edited by Blaaq, 11.12.2020 15:11.
Quote

  • +
  • -
dredek's Photo dredek 11.12.2020

Dopisz debug po amxbans_main.amxx i wtedy wyślij logi, przy okazji załącz .sma.

Quote

  • +
  • -
_.-*`PaniQ*-._'s Photo _.-*`PaniQ*-._ 11.12.2020

L 12/11/2020 - 17:44:14: replace() buffer not big enough (60>=59)
L 12/11/2020 - 17:44:14: [AMXX] Displaying debug trace (plugin "amxbans_main.amxx", version "Gm 1.5.1")
L 12/11/2020 - 17:44:14: [AMXX] Run time error 10: native error (native "replace")
L 12/11/2020 - 17:44:14: [AMXX]    [0] string.inc::replace_all (line 239)
L 12/11/2020 - 17:44:14: [AMXX]    [1] amxbans_main.sma::mysql_escape_string (line 360)
L 12/11/2020 - 17:44:14: [AMXX]    [2] amxbans_main.sma::mysql_get_servername_safe (line 371)
L 12/11/2020 - 17:44:14: [AMXX]    [3] init_functions.inl::banmod_online_ (line 50)

https://www45.zippys...t7tzA/file.html

Quote

  • +
  • -
dredek's Photo dredek 12.12.2020

Wrzuć sobie tego amxbans_main

Attached Files

Quote

  • +
  • -
_.-*`PaniQ*-._'s Photo _.-*`PaniQ*-._ 12.12.2020

Nie pomogło, nadal wyświetla się error

L 12/12/2020 - 17:31:04: replace() buffer not big enough (60>=59)
L 12/12/2020 - 17:31:04: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "replace") - debug not enabled!
L 12/12/2020 - 17:31:04: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

po debugowaniu

L 12/12/2020 - 17:33:09: replace() buffer not big enough (60>=59)
L 12/12/2020 - 17:33:09: [AMXX] Displaying debug trace (plugin "amxbans_main.amxx", version "Gm 1.6")
L 12/12/2020 - 17:33:09: [AMXX] Run time error 10: native error (native "replace")
L 12/12/2020 - 17:33:09: [AMXX]    [0] string_stocks.inc::replace_all (line 215)
L 12/12/2020 - 17:33:09: [AMXX]    [1] amxbans_main_4054721.sma::mysql_escape_string (line 526)
L 12/12/2020 - 17:33:09: [AMXX]    [2] amxbans_main_4054721.sma::mysql_get_servername_safe (line 541)
L 12/12/2020 - 17:33:09: [AMXX]    [3] init_functions.inl::banmod_online_ (line 41)

 


Edited by Blaaq, 12.12.2020 17:36.
Quote

  • +
  • -
l3szcz's Photo l3szcz 23.12.2020

 

Nie pomogło, nadal wyświetla się error

L 12/12/2020 - 17:31:04: replace() buffer not big enough (60>=59)
L 12/12/2020 - 17:31:04: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "replace") - debug not enabled!
L 12/12/2020 - 17:31:04: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

po debugowaniu

L 12/12/2020 - 17:33:09: replace() buffer not big enough (60>=59)
L 12/12/2020 - 17:33:09: [AMXX] Displaying debug trace (plugin "amxbans_main.amxx", version "Gm 1.6")
L 12/12/2020 - 17:33:09: [AMXX] Run time error 10: native error (native "replace")
L 12/12/2020 - 17:33:09: [AMXX]    [0] string_stocks.inc::replace_all (line 215)
L 12/12/2020 - 17:33:09: [AMXX]    [1] amxbans_main_4054721.sma::mysql_escape_string (line 526)
L 12/12/2020 - 17:33:09: [AMXX]    [2] amxbans_main_4054721.sma::mysql_get_servername_safe (line 541)
L 12/12/2020 - 17:33:09: [AMXX]    [3] init_functions.inl::banmod_online_ (line 41)

Coś przekracza rozmiar bufora. Pytanie co i dlaczego? :) 

Quote

  • +
  • -
Best Answer Rivit's Photo Rivit 24.12.2020

Zwiększyć bufory trzeba po prostu.

Tekst po replace przekracza romiar bufora, co jest całkiem normalne jeśli się nie poduma wcześniej i nie ustawi większego bufora.

 

 

Quote