←  Problemy

AMXX.pl: Support AMX Mod X i SourceMod

»

Amxbans błąd

Zablokowany

Wiewiorek - zdjęcie Wiewiorek 02.03.2010

Co oznacza ten błąd:


You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near

mam to w logach napisane. I serwer sie crashuje. Jak to naprawić?


a to całość:

L 03/02/2010 - 22:54:43: [amxbans.amxx] [AMXBANS] AMXBans 5.1rc jest online
L 03/02/2010 - 22:54:45: [std_admin_color_chat.amxx] ADMINS amx_chat, From: "Wiewiorek Servers #1 [Deathrun] www.cs-ws.pl @ Hit4u.net<0><><>" Message: "[AMXBANS]<Tav3R> STEAM_0:1:26482224 banned 3 time(s) before."
L 03/02/2010 - 22:54:46: [std_admin_color_chat.amxx] ADMINS amx_chat, From: "Wiewiorek Servers #1 [Deathrun] www.cs-ws.pl @ Hit4u.net<0><><>" Message: "[AMXBANS]<<Canon>> STEAM_0:0:25609402 banned 5 time(s) before."
L 03/02/2010 - 22:54:47: [amxbans.amxx] [Amxbans] Zapytanie nieudane!
L 03/02/2010 - 22:54:47: [amxbans.amxx] [Amxbans] Blad zapyania, lokacja: 18
L 03/02/2010 - 22:54:47: [amxbans.amxx] [Amxbans] Wiadomosc: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''amx' at line 1 (1064)
L 03/02/2010 - 22:54:47: [amxbans.amxx] [Amxbans] Status zapytania:

Użytkownik Wiewiorek edytował ten post 02.03.2010 23:42
Odpowiedz

  • +
  • -
mgr inż. Pavulon - zdjęcie mgr inż. Pavulon 02.03.2010

Błąd składni zapytania SQL.
Odpowiedz

Wiewiorek - zdjęcie Wiewiorek 03.03.2010

A jak to narawić i co to powoduje?
Odpowiedz

  • +
  • -
mgr inż. Pavulon - zdjęcie mgr inż. Pavulon 03.03.2010

A jak to narawić i co to powoduje?

Jak naprawić ? Poprawić składnię.
Co powoduje ? Błędna składnia.
Odpowiedz

Wiewiorek - zdjęcie Wiewiorek 03.03.2010

Więc, jak, gdzie poprawić składnie?;)
Odpowiedz

  • +
  • -
mgr inż. Pavulon - zdjęcie mgr inż. Pavulon 03.03.2010

[amxbans.amxx] [Amxbans] Blad zapyania, lokacja: 18

W zapytaniu nr. 18
Odpowiedz

Wiewiorek - zdjęcie Wiewiorek 03.03.2010

Jak
Odpowiedz

  • +
  • -
GwynBleidD - zdjęcie GwynBleidD 04.03.2010

Podaj treść tego zapytania to spróbujemy coś poradzić :)
Odpowiedz

Wiewiorek - zdjęcie Wiewiorek 05.03.2010

Gdzie znajduje się treść tego zapytania?
Odpowiedz

  • +
  • -
mgr inż. Pavulon - zdjęcie mgr inż. Pavulon 05.03.2010

może w .sma ? :giggle:
załącz wszystkie .sma, .inl od amxbans
Odpowiedz

Wiewiorek - zdjęcie Wiewiorek 06.03.2010

Proszę

http://www.amxbans.de/downloads.php?do=file&id=1

06 marzec 2010 - 21:23:
Ogólnie pytanko czy jeśli zmienie z hostingu xaa.pl na lepszy np.

Hosting bez limitu transferu

.... na glowanet.pl biznes 2 lub biznes 1. Czy to pomoże??
I dlaczego serwer jailbreak również ma amxbans nie wyłacza się a serwer deathrun oraz nowy serwer awp/aim się wyłączają jeśli amxbans crashuje.
Odpowiedz

  • +
  • -
mgr inż. Pavulon - zdjęcie mgr inż. Pavulon 07.03.2010

To jest to zapytanie:
"INSERT INTO `%s` (player_id,player_ip,player_nick,admin_id,admin_nick,admin_ip,ban_type,ban_reason,ban_created,ban_length,server_ip,server_name,unban_created,unban_reason,unban_admin_nick) VALUES('%s','%s','%s','%s','%s','%s','%s','%s','%d','%s','%s','%s','%i','Bantime expired','amxbans')",tbl_banhist, player_steamid, player_ip, player_nick, admin_steamid, admin_nick, admin_ip, ban_type, ban_reason, ban_created, ban_length, server_ip, server_name, unban_created

Pokaż swoje ustawienia i jak możesz to struktury tabel z phpMyAdmin'a.

I ustaw cvar:
amxbans_debug 1
Odpowiedz

Wiewiorek - zdjęcie Wiewiorek 07.03.2010

// Amxbans configuration file
echo [AMXBANS] amxbans.cfg is executed

// Set this to 1 to enable debug messages from amxbans to amxx logs.
// If you dont want to see "[AMXBANS] AMXBans 5.x is online" in the amxx logs set this to 10 
amxbans_debug 1

// Set this cvar to what the adminname should be on the webpages if the server make the ban.
// Ie. amxbans_servernick "My Great server" Leave emty if you want to use the default name from server.cfg
amxbans_servernick ""

// Print green hudmessages top left when banning
amxbans_show_hud_messages 1

// If you want to see ban announcments in the HLSW chat have this set to 1
amxbans_show_in_hlsw 1

// Set this to 1 if you want the map name to show in the DB.
amxbans_add_mapname_in_servername 1

// To be able to ban players not in the server. 1 enabled and 0 disabled.
amxbans_ban_evenif_disconnected 1

// Dont use http:// in this cvar. The url will show to banned players in the console.
amxbans_complain_url "http://cs-ws.pl/"

// Show if a player has been banned before as amx_chat to admins. 0 to disable
amxbans_show_prebanned 1

// How many previous offences must the player at least have to notify the admins in amx_chat?
amxbans_show_prebanned_num 2

// To filter out very old bans you can set how many days must have gone to NOT count.
amxbans_max_time_to_show_preban 9999

// Put the path to your findex.php here if you want to use the banhistory menu
amxbans_banhistmotd_url "http://ws-amxbans.xaa.pl/findex.php?steamid=%s"

// Should prebanned count atac bans or NOT in the amx_chat to admins
amxbans_show_prebans_from_atac 1

// What flag should admins have to NOT get their Nick printed when banning/Unbanning
amxbans_admin_mole_access "r"

// If an admin has the admin_mole_access should his name be shown when he bans?
amxbans_show_name_evenif_mole 1

// This is the first bantime (in minutes) that will show in the banmenu.
amxbans_first_banmenu_value 5

// This is the max value an admin with only the d-flag can ban in the console.
amxbans_consolebanmax 1440

// How long after a ban has been made can an admin with the d-flag unBan? This is set in minutes.
amxbans_max_time_gone_to_unban 1440

// What flag should admins have to get the high ban times.
amxbans_higher_ban_time_admin "n"


// Ban times for admins with d-flag, set the highest time in minutes they can ban with "amxbans_consolebanmax"
// IMPORTANT put the lowest value first and the highest value last. You can  have 1 to 12 values
// The -1 value is for flagging players, do not remove that!
// "0 m" = permanent ban!
// Values you can use:
// 1 - 59 with the flag m is for minutes
// 1 - 23 with the flag h is for hours
// 1 - 6 with the flag d is for days
// The w flag is for weeks
	
// Example:
// "5 m" is 5 minutes
// "1 h" is 1 hour
// "1 d" is 1 day
// "1 w" is 1 week

amx_setlowbantimes "5 m" "30 m" "1 h" "8 h" "10 h" "1 d" "-1 m"

// Ban times for admin with n-flag and d-flag
// IMPORTANT!! put the lowest value first and the highest value last. You can have 1 to 12 values
// The "-1 m" value is for flagging players, do not remove that!
// "0 m" = permanent ban!
// Values you can use:
// 1 - 59 with the flag m is for minutes
// 1 - 23 with the flag h is for hours
// 1 - 6 with the flag d is for days
// The w flag is for weeks
// 
// Example:
// "5 m" is 5 minutes
// "1 h" is 1 hour
// "1 d" is 1 day
// "1 w" is 1 week

amx_sethighbantimes "5 m" "1 h" "4 h" "10 h" "1 d" "3 d" "1 w" "2 w" "4 w" "0 m" "-1 m"

to z amxbans.cfg

Dołączona grafika
Odpowiedz

  • +
  • -
mgr inż. Pavulon - zdjęcie mgr inż. Pavulon 07.03.2010

Dziwne to... Skoro błędne zapytanie jest przy dodawaniu do historii to czemu w historii jest tyle rekordów ?
Powiedz jak jest aktualnie. Co jest w logach ? Jak wyglądają problemy itd
Odpowiedz

Wiewiorek - zdjęcie Wiewiorek 07.03.2010

Nie ma żadnych errorów.

Więc tak mam 3 serwery w tym Jailbreak, na którym również jest ten sam amxbans i ten serwer się nie wyłącza. Wszystko na nim chodzi.
Deathrun wyłącza się czasem 10x dziennie a czasem chodzi 2 dni i nic się nie dzieje.
AWP/AIM wyłączyłem plugin amxbans, bo na razie nia ma co banowac żeby sprawdzić czy się będzie wyłączać. Jak na razie od 2 dni wszsytko chodzi. Wcześniej miałem na nim amxbans, ale serwer się wyłączał więc chciałem sprawdzić co jest jego powodem.


Ogólnie banowanie czasem nie działa. Chociaż teraz chyba wszystko już naprawiłem wymieniając pliki na te dobre, ale czasem niektórym osobom nie można dać bana i musze usuwać ich z bazy danych i dopiero wtedy można ich zbanować.

Najbardziej mnie interesuje czy jesli zmienie hosting z xaa.pl na glowanet.pl nie skopiuje bazy danych z banami, żeby już wszystko ładnie chodziło. Czy to pomoże? Zainstaluje na nowo amxbans na 100x lepszym hostingu.
Bo już naprawdę ten problem jest od 3 miesięcy codziennie trzeba po pare razy właczać serwery...

To chyba tyle.

Wielkie dzięki za pomoc ;)
Odpowiedz

  • +
  • -
mgr inż. Pavulon - zdjęcie mgr inż. Pavulon 07.03.2010

Hosting bazy danych na pewno może poprawić sytuację...
No i można też czekać na AMXBans 6.0
Odpowiedz

Wiewiorek - zdjęcie Wiewiorek 08.03.2010

To amxbans 6.0 wychodzi już pół roku :P może niedługo wyjdzie bo zapewne każdy nie może się doczekać co tam nowego wymyślili.

No nic wielkie dzięki za pomoc. Może na nowym hostingu będzie lepiej.
Odpowiedz

  • +
  • -
Misiaczek ;c - zdjęcie Misiaczek ;c 08.03.2010

Zainstaluj może wersja 5.1b ?? wczoraj została wydana

A co do 6.0
Development-Progress:
Plugin: 95% (Latest bugfixes)
Web: 98% (waiting for Design and latest Bugfixes)

Design: 60% (in Progress)


Jak narazie nic nowego nam do tłumaczenia nie dali :)a prostota instalacji 6.0 jest 100% łatwiejsza niż 5.1 ;d wiem bo już testowałem :P
Odpowiedz

Wiewiorek - zdjęcie Wiewiorek 08.03.2010

Czyli niedługo już powinna być ta wersja 6.0.


Zobaczymy. na razie na nowym hostingu wgram najnowszą wersje.
Odpowiedz

  • +
  • -
mgr inż. Pavulon - zdjęcie mgr inż. Pavulon 08.03.2010

5.1b różni się tylko 9 plikami .php
/ban_details.php
/ban_details_ex.php
/live.php
/admins_list.php
/getdemo.php
/admin/add_ban.php
/unavailable.php
/admin/log_search.php
/motd_details.php
Odpowiedz
Zablokowany