Skocz do zawartości

  • Zaloguj korzystając z Facebooka Zaloguj korzystając z Twittera Zaloguj przez Steam Zaloguj poprzez Google      Logowanie »   
  • Rejestracja

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.

  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

Problem z komendą /klasa


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
1 odpowiedź w tym temacie

#1 Freezy

    Nowy

  • Pijawka

Reputacja: 0
zer0.

  • Postów:1
  • Lokalizacja:Częstochowa
Offline

Napisano 29.11.2011 19:21

Witam,
mam problem z komendą /klasa... Wszystkie inne działają. Pewnie to wina z bazą danych lecz nie wiem co dokładnie. Hosting mam na securityhost.pl

Logi z diablo:

L 11/29/2011 - 19:00:19: Log file started (file "cstrike/addons/amxmodx/logs/diablo.log") (game "cstrike") (amx "1.8.1.3711")
L 11/29/2011 - 19:00:19: 11/29/2011 - 19:00:19 ### MAPA: de_torn ### 
L 11/29/2011 - 19:08:28: 11/29/2011 - 19:08:28 ### MAPA: de_dust2 ### 
L 11/29/2011 - 19:08:55: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:08:55: Could not connect to SQL database.
L 11/29/2011 - 19:09:00: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:09:00: Could not connect to SQL database.
L 11/29/2011 - 19:09:00: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:09:00: Could not connect to SQL database.
L 11/29/2011 - 19:09:17: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:09:17: Could not connect to SQL database.
L 11/29/2011 - 19:09:17: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:09:17: Could not connect to SQL database.
L 11/29/2011 - 19:10:01: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:10:01: Could not connect to SQL database.
L 11/29/2011 - 19:10:02: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:10:02: Could not connect to SQL database.
L 11/29/2011 - 19:10:03: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:10:03: Could not connect to SQL database.
L 11/29/2011 - 19:10:04: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:10:04: Could not connect to SQL database.
L 11/29/2011 - 19:10:58: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:10:58: Could not connect to SQL database.
L 11/29/2011 - 19:10:58: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:10:58: Could not connect to SQL database.
L 11/29/2011 - 19:11:13: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:11:13: Could not connect to SQL database.
L 11/29/2011 - 19:11:13: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:11:13: Could not connect to SQL database.
L 11/29/2011 - 19:11:14: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:11:14: Could not connect to SQL database.
L 11/29/2011 - 19:11:14: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:11:14: Could not connect to SQL database.
L 11/29/2011 - 19:11:19: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:11:19: Could not connect to SQL database.
L 11/29/2011 - 19:11:19: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:11:19: Could not connect to SQL database.
L 11/29/2011 - 19:11:20: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:11:20: Could not connect to SQL database.
L 11/29/2011 - 19:11:20: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:11:20: Could not connect to SQL database.
L 11/29/2011 - 19:11:37: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:11:37: Could not connect to SQL database.
L 11/29/2011 - 19:11:37: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:11:37: Could not connect to SQL database.
L 11/29/2011 - 19:11:39: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:11:39: Could not connect to SQL database.
L 11/29/2011 - 19:11:40: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:11:40: Could not connect to SQL database.
L 11/29/2011 - 19:12:04: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:12:04: Could not connect to SQL database.
L 11/29/2011 - 19:12:04: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:12:04: Could not connect to SQL database.
L 11/29/2011 - 19:12:18: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:12:18: Could not connect to SQL database.
L 11/29/2011 - 19:12:42: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:12:42: Could not connect to SQL database.
L 11/29/2011 - 19:12:43: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:12:43: Could not connect to SQL database.
L 11/29/2011 - 19:13:05: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:13:05: Could not connect to SQL database.
L 11/29/2011 - 19:13:05: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:13:05: Could not connect to SQL database.
L 11/29/2011 - 19:13:05: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:13:05: Could not connect to SQL database.
L 11/29/2011 - 19:13:09: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:13:09: Could not connect to SQL database.
L 11/29/2011 - 19:13:09: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:13:09: Could not connect to SQL database.
L 11/29/2011 - 19:13:28: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:13:28: Could not connect to SQL database.
L 11/29/2011 - 19:13:28: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:13:28: Could not connect to SQL database.
L 11/29/2011 - 19:13:53: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:13:53: Could not connect to SQL database.
L 11/29/2011 - 19:13:54: Error on Table query: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 11/29/2011 - 19:13:54: Could not connect to SQL database.

To już widać... Tylko nie wiem jak to uzupełnić.

Dane bazy w amxx.cfg (w cvarach):


diablo_sql_host "localhost"
diablo_sql_user "boardonl_diablo"
diablo_sql_pass "qwe123"
diablo_sql_database "boardonl_diablomod"
diablo_sql_table "diablomod"
diablo_sql_save "Zapis bazy 0"
//0 - Nick
//1 - IP
//2 - STEAMID
diablo_xpbonus 20 //Ilość expa za zabicie (standardowo ustawione na 7)
diablo_xpbonus2 40 //Ilość expa za wykonania celu mapy (standardowo ustawione na 75)
diablo_xpbonus3 20 //Okresla ile dosw. dostajesz za wygranie rundy przez twoj team
diablo_durability 10 //Okresla ilosc tracenia jakosci za każdym razem,kiedy uderzy cie przeciwnik
diablo_spawnchance 7 //1/x - szansa na zrespienia gracza
SaveXp 1 //1/0 zapisywanie doświadczenia
diablo_classes abcdefghijkl //które klasy maja być dostępne
diablo_avg 0 //zaczynanie od sredniej serwera (liczonego od lvl 1)
diablo_dmg_exp 0 //za ile zabranego hp wrogowi dostaje sie 1 exp (domyslnie 20, 0 - off)
//Cvarow podanych niżej nie zmieniaj
sv_hook "1"
sv_hookthrowspeed "2000"
sv_hookspeed "600"
sv_hookwidth "32"
sv_hooksound "1"
sv_hookcolor "0"
sv_hookplayers "1"
sv_hookinterrupt "0"
sv_hookadminonly "0"
sv_hooksky "1"
sv_hookopendoors "1"
sv_hookbuttons "1"
sv_hookpickweapons "1"
sv_hookhostfollow "1"
sv_hookinstant "0"
sv_hooknoise "0"
sv_hookmax "0"
sv_hookdelay "0.0"
//Koniec cvarów których masz nie zmieniać
  • +
  • -
  • 0

#2 Ojciec Dyrektor

    papa smerf.

  • Przyjaciel

Reputacja: 476
Wszechobecny

  • Postów:3035
  • Imię:Paweł
  • Lokalizacja:Rabka-Zdrój
Offline

Napisano 29.11.2011 19:36

diablo_sql_host "localhost"

:facepalm:
zmień to na adres ip, serwera na którym znajduje się baza danych

a nie masz możliwości wybrania klas, bo jest brak połączenia z bazą danych. Tematów na ten temat było mnóstwo
  • +
  • -
  • 0




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych