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
AMXBans 5.x

Problem z polaczeniem z bazą

AMXBans 5.x

  • Zamknięty Temat jest zamknięty
14 odpowiedzi w tym temacie

#1 Nevv

    Profesjonalista

  • Zbanowany

Reputacja: 15
Początkujący

  • Postów:208
  • Lokalizacja:Strzelce
Offline

Napisano 07.02.2011 20:35

- Wersję AMXBansa: 5.0
- Wersję AMXMODX (1.8.1)

- Wersję serwera: dproto
- Logi

L 02/07/2011 - 20:19:50: Start of error session.
L 02/07/2011 - 20:19:50: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20110207.log")
L 02/07/2011 - 20:19:50: [MySQL] Invalid handle: 0
L 02/07/2011 - 20:19:50: [AMXX] Run time error 10 (plugin "amxbans.amxx") (native "SQL_FreeHandle") - debug not enabled!
L 02/07/2011 - 20:19:50: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 02/07/2011 - 20:19:51: Start of error session.
L 02/07/2011 - 20:19:51: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20110207.log")
L 02/07/2011 - 20:19:51: [MySQL] Invalid handle: 0
L 02/07/2011 - 20:19:51: [AMXX] Run time error 10 (plugin "amxbans.amxx") (native "SQL_FreeHandle") - debug not enabled!
L 02/07/2011 - 20:19:51: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

- amxbans.cfg

// 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 4.x is online" in the amxx logs set this to 10 
amxbans_debug 0

// 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 0

// 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 "www.yoursite.com"

// 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://pathToYour/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 w" "0 m" "-1 m"

- plugins.ini

; AMX Mod X plugins

;Admin Base - Always one has to be activated
admin.amxx		; admin base (required for any admin-related)
;admin_sql.amxx		; admin base - SQL version (comment admin.amxx)
amxbans.amxx            ; AMXBans 

; Basic
admincmd.amxx		; basic admin console commands
adminhelp.amxx		; help command for admin console commands
adminslots.amxx		; slot reservation
multilingual.amxx	; Multi-Lingual management

; Menus
menufront.amxx		; front-end for admin menus
cmdmenu.amxx		; command menu (speech, settings)
plmenu.amxx		; players menu (kick, ban, client cmds.)
;telemenu.amxx		; teleport menu (Fun Module required!)
mapsmenu.amxx		; maps menu (vote, changelevel)
pluginmenu.amxx		; Menus for commands/cvars organized by plugin

; Chat / Messages
adminchat.amxx		; console chat commands
antiflood.amxx		; prevent clients from chat-flooding the server
scrollmsg.amxx		; displays a scrolling message
imessage.amxx		; displays information messages
adminvote.amxx		; vote commands

; Map related
nextmap.amxx		; displays next map in mapcycle
;mapchooser.amxx		; allows to vote for next map
timeleft.amxx		; displays time left on map

; Configuration
pausecfg.amxx		; allows to pause and unpause some plugins
statscfg.amxx		; allows to manage stats plugins via menu and commands

; Counter-Strike
restmenu.amxx		; restrict weapons menu
statsx.amxx		; stats on death or round end (CSX Module required!)
miscstats.amxx		; bunch of events announcement for Counter-Strike
stats_logging.amxx	; weapons stats logging (CSX Module required!)

; Enable to use AMX Mod plugins
;amxmod_compat.amxx	; AMX Mod backwards compatibility layer

; Custom - Add 3rd party plugins here



parachute.amxx
ruletka.amxx
mapchooser4.amxx
ad_manager.amxx
straznik_ex_interp.amxx
bk3.amxx
cash_transfer.amxx
ghw_red_bull.amxx
sprzedaz.amxx
ultimate_sounds_PL.amxx
descriptive_fire_in_the_hole.amxx
loadingsongadvanced.amxx
ptb.amxx
polski_cs.amxx
alt_end_round_sounds.amxx
menuwyboru.amxx
xredirect.amxx
abd.amxx

- modules.ini

;;;
; To enable a module, remove the semi-colon (<img src='http://img.amxx.pl/public/style_emoticons/<#EMO_DIR#>/wink.gif' class='bbc_emoticon' alt=';)' /> in front of its name.
; If it's not here, simply add it its name, one per line.
; You don't need to write the _amxx part or the file extension.
;;;

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; SQL Modules usually need to be enabled manually ;;
;; You can have any number on at a time.  Use      ;;
;;  amx_sql_type in sql.cfg to specify the default ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

mysql
sqlite

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Put third party modules below here.              ;;
;; You can just list their names, without the _amxx ;;
;;  or file extension.                              ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;



;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; These modules will be auto-detected and loaded   ;;
;;  as needed.  You do not need to enable them here ;;
;;  unless you have problems.                       ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

fun
;engine
;fakemeta
;geoip
;sockets
;regex
;nvault
cstrike
csx
;hamsandwich

- sql.cfg

// SQL configuration file
// File location: $moddir/addons/amxmodx/configs/sql.cfg

// *NOTE* Linux users may encounter problems if they specify "localhost" instead of "127.0.0.1"
// We recommend using your server IP address instead of its name

// *NOTE* amx_sql_type specifies the DEFAULT database type which admin.sma will use.


amx_sql_host    "karatornia.pl"
amx_sql_user    "counters_ban"
amx_sql_pass    "***********"
amx_sql_db        "counters_karabany"
amx_sql_table    "admins"
amx_sql_type    "mysql"

Witam

Mam problem z połaczeniem się z bazą. Już kilka razy robie amxbana i dalej sie nie mogę połaczyć.
Stronę obsługuję cpanelem <---- może pomóc

Pozdrawiam i czekam na odpiwiedz.

Dodano 08 luty 2011 - 10:13:
Dlaczego nikt nie odpisze?? zrobilem według wzoru inni nie a i pomagacie *****

Dodano 09 luty 2011 - 09:36:
dlaczgo nick nie chce pomóc??

#2 eMek

    Pomocny

  • Użytkownik

Reputacja: 4
Nowy

  • Postów:52
  • Imię:Patryk
  • Lokalizacja:Łódź
Offline

Napisano 09.02.2011 11:12

wpisz po amxbans.amxx debug
; AMX Mod X plugins

;Admin Base - Always one has to be activated
admin.amxx		; admin base (required for any admin-related)
amxbans.amxx debug      ; AMXBans 
;admin_sql.amxx		; admin base - SQL version (comment admin.amxx)


; Basic
admincmd.amxx		; basic admin console commands
adminhelp.amxx		; help command for admin console commands
adminslots.amxx		; slot reservation
multilingual.amxx	; Multi-Lingual management

; Menus
menufront.amxx		; front-end for admin menus
cmdmenu.amxx		; command menu (speech, settings)
plmenu.amxx		; players menu (kick, ban, client cmds.)
;telemenu.amxx		; teleport menu (Fun Module required!)
mapsmenu.amxx		; maps menu (vote, changelevel)
pluginmenu.amxx		; Menus for commands/cvars organized by plugin

; Chat / Messages
adminchat.amxx		; console chat commands
antiflood.amxx		; prevent clients from chat-flooding the server
scrollmsg.amxx		; displays a scrolling message
imessage.amxx		; displays information messages
adminvote.amxx		; vote commands

; Map related
nextmap.amxx		; displays next map in mapcycle
;mapchooser.amxx		; allows to vote for next map
timeleft.amxx		; displays time left on map

; Configuration
pausecfg.amxx		; allows to pause and unpause some plugins
statscfg.amxx		; allows to manage stats plugins via menu and commands

; Counter-Strike
restmenu.amxx		; restrict weapons menu
statsx.amxx		; stats on death or round end (CSX Module required!)
miscstats.amxx		; bunch of events announcement for Counter-Strike
stats_logging.amxx	; weapons stats logging (CSX Module required!)

; Enable to use AMX Mod plugins
;amxmod_compat.amxx	; AMX Mod backwards compatibility layer

; Custom - Add 3rd party plugins here



parachute.amxx
ruletka.amxx
mapchooser4.amxx
ad_manager.amxx
straznik_ex_interp.amxx
bk3.amxx
cash_transfer.amxx
ghw_red_bull.amxx
sprzedaz.amxx
ultimate_sounds_PL.amxx
descriptive_fire_in_the_hole.amxx
loadingsongadvanced.amxx
ptb.amxx
polski_cs.amxx
alt_end_round_sounds.amxx
menuwyboru.amxx
xredirect.amxx
abd.amxx

  • +
  • -
  • 0

#3 Nevv

    Profesjonalista

  • Autor tematu
  • Zbanowany

Reputacja: 15
Początkujący

  • Postów:208
  • Lokalizacja:Strzelce
Offline

Napisano 10.02.2011 13:55

wpisałem i?

L 02/10/2011 - 07:10:10: Start of error session.
L 02/10/2011 - 07:10:10: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20110210.log")
L 02/10/2011 - 07:10:10: [MySQL] Invalid handle: 0
L 02/10/2011 - 07:10:10: [AMXX] Displaying debug trace (plugin "amxbans.amxx")
L 02/10/2011 - 07:10:10: [AMXX] Run time error 10: native error (native "SQL_FreeHandle")
L 02/10/2011 - 07:10:10: [AMXX] [0] amxbans.sma::plugin_end (line 618)
L 02/10/2011 - 07:10:22: Start of error session.
L 02/10/2011 - 07:10:22: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20110210.log")
L 02/10/2011 - 07:10:22: [MySQL] Invalid handle: 0
L 02/10/2011 - 07:10:22: [AMXX] Displaying debug trace (plugin "amxbans.amxx")
L 02/10/2011 - 07:10:22: [AMXX] Run time error 10: native error (native "SQL_FreeHandle")
L 02/10/2011 - 07:10:22: [AMXX] [0] amxbans.sma::plugin_end (line 618)

#4 Siemko

    Życzliwy

  • Użytkownik

Reputacja: -1
Nowy

  • Postów:25
  • GG:
  • Imię:Dawid
  • Lokalizacja:droga do bana pl
Offline

Napisano 10.02.2011 14:47

A dodales ip do polaczenia sie z baza?
  • +
  • -
  • 0

#5 Szyfrant

    Godlike

  • Przyjaciel

Reputacja: 1 374
Godlike

  • Postów:3 072
  • Steam:steam
  • Imię:Michał
  • Lokalizacja:Sztokholm
Offline

Napisano 10.02.2011 17:50

zablokuj sqlite w modules.ini
  • +
  • -
  • 0

#6 Nevv

    Profesjonalista

  • Autor tematu
  • Zbanowany

Reputacja: 15
Początkujący

  • Postów:208
  • Lokalizacja:Strzelce
Offline

Napisano 10.02.2011 18:22

Siemko jakie ip? gdzie?


L 02/10/2011 - 18:19:54: Start of error session.
L 02/10/2011 - 18:19:54: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20110210.log")
L 02/10/2011 - 18:19:54: [MySQL] Invalid handle: 0
L 02/10/2011 - 18:19:54: [AMXX] Displaying debug trace (plugin "amxbans.amxx")
L 02/10/2011 - 18:19:54: [AMXX] Run time error 10: native error (native "SQL_FreeHandle")
L 02/10/2011 - 18:19:54: [AMXX] [0] amxbans.sma::plugin_end (line 618)
L 02/10/2011 - 18:19:55: Start of error session.
L 02/10/2011 - 18:19:55: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20110210.log")
L 02/10/2011 - 18:19:55: [MySQL] Invalid handle: 0
L 02/10/2011 - 18:19:55: [AMXX] Displaying debug trace (plugin "amxbans.amxx")
L 02/10/2011 - 18:19:55: [AMXX] Run time error 10: native error (native "SQL_FreeHandle")
L 02/10/2011 - 18:19:55: [AMXX] [0] amxbans.sma::plugin_end (line 618)

#7 Kawon

    Godlike

  • Przyjaciel

Reputacja: 887
Czempion

  • Postów:5 165
  • Steam:steam
  • Imię:Paweł
  • Lokalizacja:Dzierzgoń
Offline

Napisano 10.02.2011 18:23

zablokuj sqlite w sql.cfg

chyba w modules.ini ;P
a w sql.cfg zmień amx_sql_table "amx"
  • +
  • -
  • 0

DarkGL to mój autorytet.


#8 Szyfrant

    Godlike

  • Przyjaciel

Reputacja: 1 374
Godlike

  • Postów:3 072
  • Steam:steam
  • Imię:Michał
  • Lokalizacja:Sztokholm
Offline

Napisano 10.02.2011 20:55

dodałeś adres serwera do zezwoleń?
  • +
  • -
  • 0

#9 Nevv

    Profesjonalista

  • Autor tematu
  • Zbanowany

Reputacja: 15
Początkujący

  • Postów:208
  • Lokalizacja:Strzelce
Offline

Napisano 10.02.2011 21:09

szyfrant gdzie do zezwoleń?

#10 Kawon

    Godlike

  • Przyjaciel

Reputacja: 887
Czempion

  • Postów:5 165
  • Steam:steam
  • Imię:Paweł
  • Lokalizacja:Dzierzgoń
Offline

Napisano 10.02.2011 21:27

szyfrant gdzie do zezwoleń?

znak % w cpanelu
  • +
  • -
  • 0

DarkGL to mój autorytet.


#11 Szyfrant

    Godlike

  • Przyjaciel

Reputacja: 1 374
Godlike

  • Postów:3 072
  • Steam:steam
  • Imię:Michał
  • Lokalizacja:Sztokholm
Offline

Napisano 10.02.2011 21:28

[MySQL] Nadawanie dostępu do bazy z zewnątrz - AMXX.pl: Support AMX Mod X

Trochę zainteresowania i własnej inicjatywy. ...
  • +
  • -
  • 0

#12 Nevv

    Profesjonalista

  • Autor tematu
  • Zbanowany

Reputacja: 15
Początkujący

  • Postów:208
  • Lokalizacja:Strzelce
Offline

Napisano 10.02.2011 21:53

i dalej nie dziala

L 02/10/2011 - 21:50:58: Start of error session.
L 02/10/2011 - 21:50:58: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20110210.log")
L 02/10/2011 - 21:50:58: [MySQL] Invalid handle: 0
L 02/10/2011 - 21:50:58: [AMXX] Displaying debug trace (plugin "amxbans.amxx")
L 02/10/2011 - 21:50:58: [AMXX] Run time error 10: native error (native "SQL_FreeHandle")
L 02/10/2011 - 21:50:58: [AMXX] [0] amxbans.sma::plugin_end (line 618)
L 02/10/2011 - 21:50:59: Start of error session.
L 02/10/2011 - 21:50:59: Info (map "de_westwood") (file "addons/amxmodx/logs/error_20110210.log")
L 02/10/2011 - 21:50:59: [MySQL] Invalid handle: 0
L 02/10/2011 - 21:50:59: [AMXX] Displaying debug trace (plugin "amxbans.amxx")
L 02/10/2011 - 21:50:59: [AMXX] Run time error 10: native error (native "SQL_FreeHandle")
L 02/10/2011 - 21:50:59: [AMXX] [0] amxbans.sma::plugin_end (line 618)

#13 Kawon

    Godlike

  • Przyjaciel

Reputacja: 887
Czempion

  • Postów:5 165
  • Steam:steam
  • Imię:Paweł
  • Lokalizacja:Dzierzgoń
Offline

Napisano 10.02.2011 21:57

Nie możesz zainstalować gm 1.5 ?
  • +
  • -
  • 0

DarkGL to mój autorytet.


#14 Nevv

    Profesjonalista

  • Autor tematu
  • Zbanowany

Reputacja: 15
Początkujący

  • Postów:208
  • Lokalizacja:Strzelce
Offline

Napisano 10.02.2011 22:04

nie wiem

a w amx_sql_host musze dac % jeśli dodałem to zezwolen % ?

Dodano 10 luty 2011 - 22:14:
a moze zainstaluje sobie tego gm bansa tylko macie instrukcje i download bo szukam i nie moge znależć tego gm bansa

#15 Kawon

    Godlike

  • Przyjaciel

Reputacja: 887
Czempion

  • Postów:5 165
  • Steam:steam
  • Imię:Paweł
  • Lokalizacja:Dzierzgoń
Offline

Napisano 10.02.2011 23:26

1. NIE !!!
2. jest na amxx.pl ;]

Użytkownik Kawon edytował ten post 10.02.2011 23:28

  • +
  • -
  • 0

DarkGL to mój autorytet.






Również z jednym lub większą ilością słów kluczowych: AMXBans 5.x

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

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