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
 

PahgZSG - zdjęcie

PahgZSG

Rejestracja: 07.01.2015
Aktualnie: Nieaktywny
Poza forum Ostatnio: 21.01.2015 16:50
-----

Moje tematy

Brak banów na stronie

17.01.2015 10:22

Witam! Nie wiem dlaczego amxbans nie łączy się z serwerm cs, po zbanowaniu gracza nie ma go na liście, dane na pewno poprawne wpisane sprawdzałem kilka razy. Amxmodx 1.8.1. GmAMXBans 1.6.(1) + Porawki (AMXX.PL)

Stronę mam na xaa cs-killyou.xaa.pl/Web/ban_list.php

 

Konsola:

 

L 01/17/2015 - 09:46:31: [amxbans_main.amxx] [AMXBans] Connection failed!

L 01/17/2015 - 09:46:31: [amxbans_main.amxx] [AMXBans] Threaded Query Error, Place: 1
L 01/17/2015 - 09:46:31: [amxbans_main.amxx] [AMXBans] Message: Access denied for user 'cskillyo_paho'@'31.186.81.18' (using password: YES) (1045)
L 01/17/2015 - 09:46:31: [amxbans_main.amxx] [AMXBans] Query statement: SELECT `motd_delay` FROM `amx_serverinfo` WHERE address = '91.185.185.122:27051'
L 01/17/2015 - 09:46:31: [amxbans_main.amxx] [AMXBans] Connection failed!
L 01/17/2015 - 09:46:31: [amxbans_main.amxx] [AMXBans] Threaded Query Error, Place: 5
L 01/17/2015 - 09:46:31: [amxbans_main.amxx] [AMXBans] Message: Access denied for user 'cskillyo_paho'@'31.186.81.18' (using password: YES) (1045)
L 01/17/2015 - 09:46:31: [amxbans_main.amxx] [AMXBans] Query statement: 
[AMXBans] No Reasons found
[AMXBans] No Reasons found in Database. Static reasons were loaded instead.

Logi:

 

L 01/17/2015 - 10:01:54: [amxbans_main.amxx] [AMXBans] Connection failed!

L 01/17/2015 - 10:01:54: [amxbans_main.amxx] [AMXBans] Threaded Query Error, Place: 1
L 01/17/2015 - 10:01:54: [amxbans_main.amxx] [AMXBans] Message: Access denied for user 'cskillyo_paho'@'31.186.81.18' (using password: YES) (1045)
L 01/17/2015 - 10:01:54: [amxbans_main.amxx] [AMXBans] Query statement: SELECT `motd_delay` FROM `amx_serverinfo` WHERE address = '91.185.185.122:27051'
L 01/17/2015 - 10:01:54: [amxbans_main.amxx] [AMXBans] Connection failed!
L 01/17/2015 - 10:01:54: [amxbans_main.amxx] [AMXBans] Threaded Query Error, Place: 5
L 01/17/2015 - 10:01:54: [amxbans_main.amxx] [AMXBans] Message: Access denied for user 'cskillyo_paho'@'31.186.81.18' (using password: YES) (1045)
L 01/17/2015 - 10:01:54: [amxbans_main.amxx] [AMXBans] Query statement: 
L 01/17/2015 - 10:01:54: [amxbans_main.amxx] [AMXBans] No Reasons found in Database. Static reasons were loaded instead.
 

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)
 
; 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)
 
; 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
 
ad_manager_array.amxx
parachute.amxx
abd.amxx
 
kup_premium.amxx
c4countdown.amxx
alt_end_round_sounds.amxx
amxbans_core.amxx
amxbans_main.amxx
amx_ssban.amxx
he_block.amxx
hi.amxx
Najlepszy.amxx
rules_mifu.amxx

modules.ini:

 

;;;

; To enable a module, remove the semi-colon ( ;) 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
 

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 "cs-killyou.xaa.pl"
amx_sql_user "cskillyo_paho"
amx_sql_pass "******"
amx_sql_db "cskillyo_ban"
amx_sql_table "admins"
amx_sql_type "mysql"
 

 

Dlaczego klasa się nie kompiluje

07.01.2015 19:27

 

#include <amxmodx>
#include <amxmisc>
#include <codmod_frakcje>
#include <fun>
#include <cstrike>
#include <hamsandwich>
#define DMG_BULLET (1<<1)
        
new const nazwa[]   = "Epikunier";
new const opis[]    = "";
new const bronie    = (1<<CSW_SCOUT)|(1<<CSW_HEGRENADE)|(1<<CSW_SMOKEGRENADE)|(1<<CSW_ELITE)|(1<<CSW_FLASHBANG)|(1<<CSW_AK47);
new const zdrowie   = 2;
new const kondycja  = 2;
new const inteligencja = 2;
new const wytrzymalosc = 2;
    
new const frakcja[] = "MegaPremium";
 
new bool:ma_klase[33];
    
public plugin_init()
{
register_plugin(nazwa, "1.0", "amxx.pl");
 
cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc, frakcja);
 
        RegisterHam(Ham_TakeDamage, "player", "TakeDamage");
}
 
public cod_class_enabled(id)
{
if(!(get_user_flags(id) & ADMIN_LEVEL_H))
{
client_print(id, print_chat, "[Epikunier] Nie masz uprawnien, aby uzywac tej klasy.")
return COD_STOP;
}
give_item(id, "weapon_hegrenade");
give_item(id, "weapon_flashbang");
give_item(id, "weapon_flashbang");
give_item(id, "weapon_smokegrenade");
cs_set_user_nvg(id, 1);
cs_set_user_defuse(id, 1);
   
return COD_CONTINUE;
}
 
public TakeDamage(this, idinflictor, idattacker, Float:damage, damagebits)
{
    if(!is_user_connected(idattacker))
        return HAM_IGNORED;
    
    if(!ma_klase[idattacker])
        return HAM_IGNORED;
    
    if(!(damagebits & DMG_BULLET))
        return HAM_IGNORED;
    
    if(get_user_weapon(idattacker) == CSW_SCOUT && random_num(1,1) == 1)
        cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits);
    
    
    return HAM_IGNORED;
}
 
public TakeDamage(this, idinflictor, idattacker, Float:damage, damagebits)
 
{
 
if(!is_user_connected(idattacker))
 
return HAM_IGNORED;
 
 
 
if(!ma_klase[idattacker])
 
return HAM_IGNORED;
 
 
 
if(!(damagebits & DMG_BULLET))
 
return HAM_IGNORED;
 
 
 
if(get_user_weapon(idattacker) == CSW_HEGRENADE && random_num(1,1) == 1)
 
cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits);
 
 
 
return HAM_IGNORED;
 

 

}

Dlaczego moja klasa nie chce się kompilować?