Skocz do zawartości

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

Błąd połączenia MySQL DiabloModCore DarkGL.


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

#1 jabycmudyn

    Początkujący

  • Użytkownik

Reputacja: 0
Nowy

  • Postów:11
  • Lokalizacja:Opole
Offline

Napisano 09.06.2014 21:46

Witam.

Wgrałem paczkę DiabloModCore od Darkgl, wszystko działa z wyjątkiem komendy /klasa, która jest w sumie najważniejsza.

Serwer stoi na pukawce, skopiowałem dane do bazy danych i wkleiłem do amxx.cfg, lecz dalej nie działa..

 

Oto mój amxx.cfg:

// AMX Mod X Configuration File
echo Executing AMX Mod X Configuration File

// Default access for all non admin players (see users.ini for access details)
//
// Default value: "z"
amx_default_access "z"

// Name of setinfo which should store a password on a client (you should change this)
// Note: Always prefix the field with an underscore (aka: "_")
// (Example: setinfo _pw "password")
//
// Default value: "_pw"
amx_password_field "_pw"

// Mode of logging to a server
// 0 - disable logging, players won't be checked (and access won't be set)
// 1 - normal mode which obey flags set in accounts
// 2 - kick all players not on list
//
// Default value: 1
amx_mode 1

// Show admins activity
// 0 - disabled
// 1 - show without admin name
// 2 - show with name
//
// Default value: 2
amx_show_activity 2

// Frequency in seconds and text of scrolling message
//
// Default value: "Welcome to %hostname% -- This server is using AMX Mod X" 600
amx_scrollmsg "Welcome to %hostname% -- This server is using AMX Mod X" 600

// Center typed colored messages (last parameter is a color in RRRGGGBBB format)
//
// Default values: "Welcome to %hostname%" "000255100"
//                 "This server is using AMX ModX\nVisit http://www.amxmodx.org" "000100255"
amx_imessage "Welcome to %hostname%" "000255100"
amx_imessage "This server is using AMX Mod X\nVisit http://www.amxmodx.org" "000100255"

// Frequency in seconds of colored messages
//
// Default value: 180
amx_freq_imessage 180

// Ban times for the main ban menu (amx_banmenu)
// Use 0 for permanent ban
// Default values: 0 5 10 15 30 45 60
amx_plmenu_bantimes 0 5 10 15 30 45 60

// Slap damage amounts for the main slap menu (amx_slapmenu)
// Slay is automaticall inserted as the first option
// Default values: 0 1 5
amx_plmenu_slapdmg 0 1 5

// Set in seconds how fast players can chat (chat-flood protection)
//
// Default value: 0.75
amx_flood_time 0.75

// Amount of slots to reserve.
//
// Default value: 0
amx_reservation 0

// If you set this to 1, you can hide slots on your server.
// If server "full" of public slots and slots hidden, you must manually connect with connect console command
//
// Default value: 0
amx_hideslots 0

// Displaying of time remaining
// a - display white text on bottom
// b - use voice
// c - don't add "remaining" (only in voice)
// d - don't add "hours/minutes/seconds" (only in voice)
// e - show/speak if current time is less than this set in parameter
//
// Default value: "ab 1200" "ab 600" "ab 300" "ab 180" "ab 60" "bcde 11"
amx_time_display "ab 1200" "ab 600" "ab 300" "ab 180" "ab 60" "bcde 11"

// Announce "say thetime" and "say timeleft" with voice, set to 0 to disable.
//
// Default value: 1
amx_time_voice 1

// Minimum delay in seconds between two voting sessions
//
// Default value: 10
amx_vote_delay 10

// How long voting session goes on
//
// Default value: 10
amx_vote_time 10

// Display who votes for what option, set to 0 to disable, 1 to enable.
//
// Default value: 1
amx_vote_answers 1

// Some ratios for voting success

// Default value: 0.40
amx_votekick_ratio 0.40

// Default value: 0.40
amx_voteban_ratio 0.40

// Default value: 0.40
amx_votemap_ratio 0.40

// Default value: 0.02
amx_vote_ratio 0.02

// Max. time to which map can be extended
//
// Default value: 90
amx_extendmap_max 90

// Step for each extending
//
// Default value: 15
amx_extendmap_step 15

// If you set this to 0, clients cannot chose their language, instead they use
// whatever language the server is configured to use.
//
// Default value: 1
amx_client_languages 1

// Plugin Debug mode
// 0 - No debugging (garbage line numbers)
// 1 - Plugins with "debug" option in plugins.ini are put into debug mode
// 2 - All plugins are put in debug mode
// Note - debug mode will affect JIT performance
//
// Default value: 1
amx_debug 1

// Plugin MultiLingual Debug
// To debug a language put its 2 letter code between quotes ("en", "de", etc)
// "" means disabled
//
// Default value: ""
amx_mldebug ""

//
// Beginning of Counter-Strike package specific configurations.
//

// Rank mode
// 0 - by nick
// 1 - by authid 
// 2 - by ip
//
// Default value: 1
csstats_rank 1

// Max size of the stats file
//
// Default value: 3500
csstats_maxsize 999999

// Whether or not to rank bots with csstats - set to 1 to rank bots, 0 otherwise.
//
// Default value: 0
csstats_rankbots 0

// Duration of HUD-statistics
//
// Default value: 12.0
amx_statsx_duration 12.0

// HUD-statistics display limit relative round freeze end
// Negative time will clear the HUD-statstics before the round freeze time has ended
//
// Default value: -2.0
amx_statsx_freeze -2.0

/////////////////////////////////////////////////////////////////////////////////////
///
//	Poniżej tej tabelki możesz dodawać cvary/ustawienia pluginów dodatkowych
///
/////////////////////////////////////////////////////////////////////////////////////
diablo_sql_host "sql.pukawka.pl"
diablo_sql_user "moja nazwa"
diablo_sql_pass "hasło"
diablo_sql_database "348412_diablo"
diablo_sql_table "dbmod_tablet"
diablo_sql_save "0" 

Tutaj logs:

L 06/09/2014 - 22:08:45: Log file started (file "cstrike/addons/amxmodx/logs/diablo.log") (game "cstrike") (amx "1.8.1.3746")
L 06/09/2014 - 22:08:45: sqlStartHandle: Error on Table query: Unknown MySQL server host 'host' (4)
L 06/09/2014 - 22:08:45: sqlStartHandle: Could not connect to SQL database.
L 06/09/2014 - 22:11:46: sqlStartHandle: Error on Table query: Unknown MySQL server host 'host' (4)
L 06/09/2014 - 22:11:46: sqlStartHandle: Could not connect to SQL database.
L 06/09/2014 - 22:18:32: sqlStartHandle: Error on Table query: Unknown MySQL server host 'host' (4)
L 06/09/2014 - 22:18:32: sqlStartHandle: Could not connect to SQL database.
L 06/09/2014 - 22:19:38: sqlStartHandle: Error on Table query: Unknown MySQL server host 'host' (4)
L 06/09/2014 - 22:19:38: sqlStartHandle: Could not connect to SQL database.
L 06/09/2014 - 22:27:02: sqlStartHandle: Error on Table query: Unknown MySQL server host 'host' (4)
L 06/09/2014 - 22:27:02: sqlStartHandle: Could not connect to SQL database.
L 06/09/2014 - 22:36:45: sqlStartHandle: Error on Table query: Unknown MySQL server host 'host' (4)
L 06/09/2014 - 22:36:45: sqlStartHandle: Could not connect to SQL database.

Proszę o pomoć i z góry dziękuję! :)

 


  • +
  • -
  • 0

#2 xenos

    Wszechobecny

  • Użytkownik

Reputacja: 216
Profesjonalista

  • Postów:467
  • GG:
  • Imię:Konrad
  • Lokalizacja:Rzeszów
Offline

Napisano 09.06.2014 21:53

zobacz czy w pliku sql.cfg nie masz identycznych cvarów do łaczenia.
i sądzę że te dane zamiast w amxx.cfg powinny być w sql.cfg


  • +
  • -
  • 0
"Jeśli potrafię to pomogę, jeśli nie potrafię to wskaże drogę którą trzeba dążyć by znaleźć odpowiedz" 

Pluginy:
Szukanie Aktywnych Banów w AmxBansie
Drop After Death
Kto postawił mine

#3 Indoor

    Zaawansowany

  • Użytkownik

Reputacja: 21
Życzliwy

  • Postów:124
  • Lokalizacja:Gorzów Wielkopolski City.
Offline

Napisano 09.06.2014 23:51

Cvary od DiabloModa Darka są w pliku diablomod.cfg w folderze /configs


  • +
  • -
  • 0

#4 TheDarkDez

    Zaawansowany

  • Użytkownik

Reputacja: 25
Życzliwy

  • Postów:112
  • GG:
  • Imię:Paweł
  • Lokalizacja:Nisko
Offline

Napisano 10.06.2014 08:25

dodałeś ip serwera cs lub znak % do serwera sql?

 

a po drugie 

 

 

diablo_sql_host "sql.pukawka.pl"
diablo_sql_user "moja nazwa"
diablo_sql_pass "hasło"
diablo_sql_database "348412_diablo"
diablo_sql_table "dbmod_tablet"
diablo_sql_save "0"

 

dodaj do diablomod.cfg.


Użytkownik TheDarkDez edytował ten post 10.06.2014 08:27

  • +
  • -
  • 0

#5 TheDarkDez

    Zaawansowany

  • Użytkownik

Reputacja: 25
Życzliwy

  • Postów:112
  • GG:
  • Imię:Paweł
  • Lokalizacja:Nisko
Offline

Napisano 10.06.2014 08:28


zobacz czy w pliku sql.cfg nie masz identycznych cvarów do łaczenia.
i sądzę że te dane zamiast w amxx.cfg powinny być w sql.cfg

 

niekoniecznie :)

 

sorry nie mogłem edytować posta up.


Użytkownik TheDarkDez edytował ten post 10.06.2014 08:29

  • +
  • -
  • 0

#6 Indoor

    Zaawansowany

  • Użytkownik

Reputacja: 21
Życzliwy

  • Postów:124
  • Lokalizacja:Gorzów Wielkopolski City.
Offline

Napisano 10.06.2014 13:47

W Diablo Darka niema cvarów

diablo_sql_host 
diablo_sql_user 
diablo_sql_pass
diablo_sql_database 
diablo_sql_table 
diablo_sql_save 

Tylko 

diablo_host
diablo_user
diablo_pass
diablo_db
diablo_save_type

  • +
  • -
  • 0

#7 jabycmudyn

    Początkujący

  • Autor tematu
  • Użytkownik

Reputacja: 0
Nowy

  • Postów:11
  • Lokalizacja:Opole
Offline

Napisano 10.06.2014 15:31

Indoor dzięki, pomogłeś. Ale to nie koniec.. kiedy wpisz /klasy to informacje o klasach wyswietlają się tylko w pierwszych 10 klasach, reszta klas nie podaje informacje tzn. że gdy wybiore informacje o pozostałych klasach ładuje się tylko czarne tło.. nic nie jest napisane.
  • +
  • -
  • 0

#8 TheDarkDez

    Zaawansowany

  • Użytkownik

Reputacja: 25
Życzliwy

  • Postów:112
  • GG:
  • Imię:Paweł
  • Lokalizacja:Nisko
Offline

Napisano 10.06.2014 16:05

Już masz graczy z dużymi lvl'ami? Jeśli nie, to musisz usunąć wszystko z bazy danych na której stoi mod. (nowe tabele wgrają się same!)


  • +
  • -
  • 0

#9 jabycmudyn

    Początkujący

  • Autor tematu
  • Użytkownik

Reputacja: 0
Nowy

  • Postów:11
  • Lokalizacja:Opole
Offline

Napisano 10.06.2014 16:19

Okej, a powiesz mi dlaczego muszę to usunąć?


  • +
  • -
  • 0

#10 TheDarkDez

    Zaawansowany

  • Użytkownik

Reputacja: 25
Życzliwy

  • Postów:112
  • GG:
  • Imię:Paweł
  • Lokalizacja:Nisko
Offline

Napisano 10.06.2014 22:29

bo może niektóre klasy nie wgrały się do bazy


  • +
  • -
  • 0

#11 Indoor

    Zaawansowany

  • Użytkownik

Reputacja: 21
Życzliwy

  • Postów:124
  • Lokalizacja:Gorzów Wielkopolski City.
Offline

Napisano 11.06.2014 14:09

@UP, Jemu nie pokazuje opisu klas...


  • +
  • -
  • 0




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

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