←  Pytania

AMXX.pl: Support AMX Mod X i SourceMod

»

AMXBans 5.x
Pytanie odnosnie dodawania serwerow.

Locked

  • +
  • -
siwyswirus1's Photo siwyswirus1 03.12.2010

Witam

zainstalowlem amxbans na forum AMXBans - Lista Ban&#243w i na serwerze.
jak teraz dodac server do listy serwerow na forum?

pytanie odnosnie:

AmxBans - Nieoficjalny polski support AMX Mod X
Quote

  • +
  • -
Turtle's Photo Turtle 03.12.2010

serwer powinien sam się automatycznie dodać i być widoczny w panelu admina via www.

Powinieneś tylko wpisać dane bazy do sql.cfg oraz włączyć plugin, reszta powinna zadziałać automatycznie. Jeżeli nie działa, wrzuć logi z amxxa, oczywiście errory ;]
Edited by Turtle, 03.12.2010 23:20.
Quote

  • +
  • -
siwyswirus1's Photo siwyswirus1 03.12.2010

hmm chodzi o to np: wpisac to do sql.php na koncu. na ftp servera a nie forum?

przyklad;

<?php


// phpBB 2.x auto-generated config file
// Do not change anything in this file!

$dbms = 'mysql4';

$dbhost = 'sds';
$dbname = 'sds';
$dbuser = 'sds';
$dbpasswd = 'sds';

$table_prefix = 'phpbb_';

define('PHPBB_INSTALLED', true);

?

Dodano 03 grudzień 2010 - 22:47:
Na forum jest zainstralowny amxbans: AMXBans - Lista Ban&#243w
Na serwerze tez nie wiem co jest zle podaje logi:

L 12/03/2010 - 22:43:03: [amxbans.amxx] [Amxbans] Polaczenie nieudane!
L 12/03/2010 - 22:43:03: [amxbans.amxx] [Amxbans] Blad zapyania, lokacja: 1
L  12/03/2010 - 22:43:03: [amxbans.amxx] [Amxbans] Wiadomosc: Can't  connect to local MySQL server through socket '/tmp/mysql.sock' (2)  (2002)
L 12/03/2010 - 22:43:03: [amxbans.amxx] [Amxbans] Status zapytania:
   VAC secure mode is activated.
L 12/03/2010 - 22:43:03: [amxbans.amxx] [Amxbans] Polaczenie nieudane!
L 12/03/2010 - 22:43:03: [amxbans.amxx] [Amxbans] Blad zapyania, lokacja: 5
L  12/03/2010 - 22:43:03: [amxbans.amxx] [Amxbans] Wiadomosc: Can't  connect to local MySQL server through socket '/tmp/mysql.sock' (2)  (2002)
L 12/03/2010 - 22:43:03: [amxbans.amxx] [Amxbans] Status zapytania:
Menu item 17 added to Menus Front-End: "Banhistory Menu" from plugin "AMXBans"
L 12/03/2010 - 22:43:07: [DPROTO]: Client 0 - Set AuthIdType 1 [Native]; pClient = 0xf52abf08
L 12/03/2010 - 22:43:07: ".:Busho:.<1><STEAM_0:0:29464199><>" connected, address "83.28.48.123:27005"
L  12/03/2010 - 22:43:07: [admin.amxx] Login:  ".:Busho:.<1><STEAM_0:0:29464199><>" became an admin  (account "STEAM_0:0:29464199") (access "bcdfiju") (address  "83.28.48.123")
[user 1] client auth!
L 12/03/2010 - 22:43:08: ".:Busho:.<1><STEAM_0:0:29464199><>" STEAM USERID validated
[user 1] wait for joining team ...
L 12/03/2010 - 22:43:08: [amxbans.amxx] [Amxbans] Polaczenie nieudane!
L 12/03/2010 - 22:43:08: [amxbans.amxx] [Amxbans] Blad zapyania, lokacja: 16
L  12/03/2010 - 22:43:08: [amxbans.amxx] [Amxbans] Wiadomosc: Can't  connect to local MySQL server through socket '/tmp/mysql.sock' (2)  (2002)
L 12/03/2010 - 22:43:08: [amxbans.amxx] [Amxbans] Status zapytania:
L 12/03/2010 - 22:43:09: [amxbans.amxx] [Amxbans] Polaczenie nieudane!
L 12/03/2010 - 22:43:09: [amxbans.amxx] [Amxbans] Blad zapyania, lokacja: 17
L  12/03/2010 - 22:43:09: [amxbans.amxx] [Amxbans] Wiadomosc: Can't  connect to local MySQL server through socket '/tmp/mysql.sock' (2)  (2002)
L 12/03/2010 - 22:43:09: [amxbans.amxx] [Amxbans] Status zapytania:
L 12/03/2010 - 22:43:09: World triggered "Round_Start"
Warning:  Unable to open sound/sound/misc/bomba.wav for transfer
L 12/03/2010 - 22:43:10: [DPROTO]: Client 1 - Set AuthIdType 8 [dproto]; pClient = 0xf52b0df0
L 12/03/2010 - 22:43:10: "-[Exile]-MaXeL<2><STEAM_ID_LAN><>" connected, address "79.175.216.107:27005"
[user 2] client auth!
[user 1] wait for joining team ...
L 12/03/2010 - 22:43:11: Server cvar "amx_nextmap" = "[Vot jeszcze nie zostal uruchom"
L 12/03/2010 - 22:43:11: ".:Busho:.<1><STEAM_0:0:29464199><>" entered the game
[user 2] wait for joining team ...
L 12/03/2010 - 22:43:12: [amxbans.amxx] [Amxbans] Polaczenie nieudane!
L 12/03/2010 - 22:43:12: [amxbans.amxx] [Amxbans] Blad zapyania, lokacja: 17
L  12/03/2010 - 22:43:12: [amxbans.amxx] [Amxbans] Wiadomosc: Can't  connect to local MySQL server through socket '/tmp/mysql.sock' (2)  (2002)
L 12/03/2010 - 22:43:12: [amxbans.amxx] [Amxbans] Status zapytania:
L 12/03/2010 - 22:43:12: [amxbans.amxx] [Amxbans] Polaczenie nieudane!
L 12/03/2010 - 22:43:12: [amxbans.amxx] [Amxbans] Blad zapyania, lokacja: 16
L  12/03/2010 - 22:43:12: [amxbans.amxx] [Amxbans] Wiadomosc: Can't  connect to local MySQL server through socket '/tmp/mysql.sock' (2)  (2002)
L 12/03/2010 - 22:43:12: [amxbans.amxx] [Amxbans] Status zapytania:
Quote

  • +
  • -
Turtle's Photo Turtle 03.12.2010

L 12/03/2010 - 22:43:12: [amxbans.amxx] [Amxbans] Polaczenie nieudane!



musisz na serwerze gdzie masz hlds dopisać do sql.cfg a nie sql.php
cstrike/addons/amxmodx/configs/sql.cfg

plik ma wyglądać tak

amx_sql_host "IP"
amx_sql_user "user_bazy"
amx_sql_pass "hasło"
amx_sql_db "nazwa_bazy"
amx_sql_table "amx"
amx_sql_type "mysql"

Quote

  • +
  • -
siwyswirus1's Photo siwyswirus1 04.12.2010

no tak pomylilo mi sie sgl.cfg i wlasinie uzupelnilem to co podales w cytacie... :S nie mam pojecia co zle zrobilem.
podaje zedytowane troszke dane:

tak zroblem:

amx_sql_host "localhost" -> w instalacji jest napisane, zeby niepodawac localhost ale na tym hostingu mam wpisane localhost w cofig.php i wszedzie
amx_sql_user "siwypro" --> nazwe i usera bazdy danyvch mam taka sama na moim hostingu xpag.pl
amx_sql_pass "haslo"
amx_sql_db "siwypro"
amx_sql_table "admins"
amx_sql_type "mysql"


tak mam podane w confing.php

$dbms = 'mysql4';
$dbhost = 'localhost -> w instalacji jest napisane, zeby niepodawac localhost ale na tym hostingu mam wpisane localhost w cofig.php i wszedzie.';
$dbname = 'siwypro'; --> nazwe i usera bazdy danyvch mam taka sama na moim hostingu xpag.pl
$dbuser = 'siwypro';
$dbpasswd = 'haslo';
$table_prefix = 'phpbb_';


dane bazy danych wziąłem z ftp z pliku config.php
Edited by siwyswirus1, 04.12.2010 00:18.
Quote

  • +
  • -
Turtle's Photo Turtle 04.12.2010

zamiast localhost wpisz IP lub domene bazy.
Cześć pluginów nie obsługuje localhosta, lepiej podać IP na sztywno.

Domniemam że serwer gry masz na innym serwerze niż www?? Jeżeli tak adres bazy mysql jest na pewno inny, więc wpisz go z placa!!!
localhost to adres TEGO serwera gdzie masz www, więc całkiem inny?
Quote

  • +
  • -
siwyswirus1's Photo siwyswirus1 05.12.2010

ok dzięki dziala.
Quote
Locked