No to tak w logach mam takie błedy
L 05/25/2011 - 14:57:08: Start of error session.
L 05/25/2011 - 14:57:08: Info (map "deathrun_temple") (file "addons/amxmodx/logs/error_20110525.log")
L 05/25/2011 - 14:57:08: [CSTRIKE] Invalid player 5
L 05/25/2011 - 14:57:08: [AMXX] Run time error 10 (plugin "amx_adminmodel.amxx") (native "cs_get_user_team") - debug not enabled!
L 05/25/2011 - 14:57:08: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 05/25/2011 - 14:57:13: [CSTRIKE] Invalid player 5
L 05/25/2011 - 14:57:13: [AMXX] Run time error 10 (plugin "amx_adminmodel.amxx") (native "cs_get_user_team") - debug not enabled!
L 05/25/2011 - 14:57:13: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
No dobra i teraz jak je naprawic ?
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.
|
Guest Message by DevFuse
Problem w logach error
Temat rozp. matti9410, 26.05.2011 15:48
6 odpowiedzi w tym temacie
#1
Napisano 26.05.2011 15:48
#2
Napisano 26.05.2011 15:58
Dopisz debug i pokaż error logi, które się pokażą. To ułatwi nam co trzeba zrobić.
#3
Napisano 26.05.2011 16:13
Prawdopodobnie, brakuje gdzieś warunku sprawdzającego, czy gracz jest połączony. Chodzi mi o ten warunek:
if(!is_user_connected(id))
return;
#4
Napisano 28.05.2011 12:43
po dodaniu Debug wyskoczyło takie coś
L 05/27/2011 - 20:44:49: Start of error session.
L 05/27/2011 - 20:44:49: Info (map "deathrun_arctic") (file "addons/amxmodx/logs/error_20110527.log")
L 05/27/2011 - 20:44:49: [CSTRIKE] Invalid player 1
L 05/27/2011 - 20:44:49: [AMXX] Displaying debug trace (plugin "amx_adminmodel.amxx")
L 05/27/2011 - 20:44:49: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 05/27/2011 - 20:44:49: [AMXX] [0] 2552.attach::resetModel (line 74)
L 05/27/2011 - 20:49:18: [CSTRIKE] Invalid player 3
L 05/27/2011 - 20:49:18: [AMXX] Displaying debug trace (plugin "amx_adminmodel.amxx")
L 05/27/2011 - 20:49:18: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 05/27/2011 - 20:49:18: [AMXX] [0] 2552.attach::resetModel (line 74)
L 05/27/2011 - 20:44:49: Start of error session.
L 05/27/2011 - 20:44:49: Info (map "deathrun_arctic") (file "addons/amxmodx/logs/error_20110527.log")
L 05/27/2011 - 20:44:49: [CSTRIKE] Invalid player 1
L 05/27/2011 - 20:44:49: [AMXX] Displaying debug trace (plugin "amx_adminmodel.amxx")
L 05/27/2011 - 20:44:49: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 05/27/2011 - 20:44:49: [AMXX] [0] 2552.attach::resetModel (line 74)
L 05/27/2011 - 20:49:18: [CSTRIKE] Invalid player 3
L 05/27/2011 - 20:49:18: [AMXX] Displaying debug trace (plugin "amx_adminmodel.amxx")
L 05/27/2011 - 20:49:18: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 05/27/2011 - 20:49:18: [AMXX] [0] 2552.attach::resetModel (line 74)
#5
Napisano 28.05.2011 13:01
Daj sma tego pluginu.
#6
Napisano 28.05.2011 20:33
/*##########################################################################
##
## -- www.SteamTools.net
## ___ _____ ___ ___ _ __ _ ___ ___ _____ _
## / | | _ \ / |/ | | | | \ | | / |/ | | _ \ | |
## / /| | | | | | / /| /| | | | | \| | / /| /| | | | | | | |
## / / | | | | | | / / |__/ | | | | | |\ | / / |__/ | | | | | | | |
## / / | | | |_| | / / | | | | | | \ | / / | | | |_| | | |___
## /_/ |_| |_____/ /_/ |_| |_| |_| \_| /_/ |_| |_____/ |_____|
##
## |__ |__ o _|_ ___ __ __ o |__, ___
## -- |__) (__| (__(__( | ) | |_, (__/_ | ) ) | | \ (__/_
## |
##
## Originated as a simple idea back in 2004, it was forgotten due to
## lack of my 'Small' coding skills. However I have progressed in recent
## months and somehow crossed that old post with this concept in it. So
## naturally I challenged myself to see if I could do it, and voila! I
## could
##
## Once you join, you play a normal person for the first round, and for
## all remaining rounds your CT or TE models are custom. They now read
## "ADMIN" on front and back, and also have small "A" patches on the arms.
## I designed these models myself, it's very easy, just bring the textures
## into photoshop, tweak out, and replace.
##
## Enjoy!
##
##
## CHANGELOG
##------------------------------------------------------------------------
## 2) v1.1.1 - Fixed missing event
## 1) v1.1.0 - Fixed VIP and other model bugs
##
##
## INSTALLATION
##------------------------------------------------------------------------
## 1) Unzip (which you may have done already)
## 2) Place 'amx_adminmodel.amxx' in 'cstrike/addons/amxmodx/plugins'
## 3) Add a line in 'configs/plugins.ini' containing 'amx_adminmodel.amxx'
## 4) Put the 'admin_ct' and 'admin_te' folders into 'cstrike/models' folder
## 5) -- Visit www.SteamTools.net and enjoy your new plugin!
##
##
##
## THE CVARs
##------------------------------------------------------------------------
##
## No CVARs for this plugin
##
##
##########################################################################*/
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
public plugin_init() {
register_plugin("AMX Admin Model", "1.1.1", "whitemike")
register_event("ResetHUD", "resetModel", "b")
return PLUGIN_CONTINUE
}
public plugin_precache() {
precache_model("models/player/admin_ct/admin_ct.mdl")
precache_model("models/player/admin_te/admin_te.mdl")
return PLUGIN_CONTINUE
}
public resetModel(id, level, cid) {
if (get_user_flags(id) & ADMIN_KICK) {
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T) {
cs_set_user_model(id, "admin_te")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "admin_ct")
}
else {
cs_reset_user_model(id)
}
}
return PLUGIN_CONTINUE
}
##
## -- www.SteamTools.net
## ___ _____ ___ ___ _ __ _ ___ ___ _____ _
## / | | _ \ / |/ | | | | \ | | / |/ | | _ \ | |
## / /| | | | | | / /| /| | | | | \| | / /| /| | | | | | | |
## / / | | | | | | / / |__/ | | | | | |\ | / / |__/ | | | | | | | |
## / / | | | |_| | / / | | | | | | \ | / / | | | |_| | | |___
## /_/ |_| |_____/ /_/ |_| |_| |_| \_| /_/ |_| |_____/ |_____|
##
## |__ |__ o _|_ ___ __ __ o |__, ___
## -- |__) (__| (__(__( | ) | |_, (__/_ | ) ) | | \ (__/_
## |
##
## Originated as a simple idea back in 2004, it was forgotten due to
## lack of my 'Small' coding skills. However I have progressed in recent
## months and somehow crossed that old post with this concept in it. So
## naturally I challenged myself to see if I could do it, and voila! I
## could
##
## Once you join, you play a normal person for the first round, and for
## all remaining rounds your CT or TE models are custom. They now read
## "ADMIN" on front and back, and also have small "A" patches on the arms.
## I designed these models myself, it's very easy, just bring the textures
## into photoshop, tweak out, and replace.
##
## Enjoy!
##
##
## CHANGELOG
##------------------------------------------------------------------------
## 2) v1.1.1 - Fixed missing event
## 1) v1.1.0 - Fixed VIP and other model bugs
##
##
## INSTALLATION
##------------------------------------------------------------------------
## 1) Unzip (which you may have done already)
## 2) Place 'amx_adminmodel.amxx' in 'cstrike/addons/amxmodx/plugins'
## 3) Add a line in 'configs/plugins.ini' containing 'amx_adminmodel.amxx'
## 4) Put the 'admin_ct' and 'admin_te' folders into 'cstrike/models' folder
## 5) -- Visit www.SteamTools.net and enjoy your new plugin!
##
##
##
## THE CVARs
##------------------------------------------------------------------------
##
## No CVARs for this plugin
##
##
##########################################################################*/
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
public plugin_init() {
register_plugin("AMX Admin Model", "1.1.1", "whitemike")
register_event("ResetHUD", "resetModel", "b")
return PLUGIN_CONTINUE
}
public plugin_precache() {
precache_model("models/player/admin_ct/admin_ct.mdl")
precache_model("models/player/admin_te/admin_te.mdl")
return PLUGIN_CONTINUE
}
public resetModel(id, level, cid) {
if (get_user_flags(id) & ADMIN_KICK) {
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T) {
cs_set_user_model(id, "admin_te")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "admin_ct")
}
else {
cs_reset_user_model(id)
}
}
return PLUGIN_CONTINUE
}
#7
Napisano 29.05.2011 00:32
/*########################################################################## ## ## -- www.SteamTools.net ## ___ _____ ___ ___ _ __ _ ___ ___ _____ _ ## / | | _ \ / |/ | | | | \ | | / |/ | | _ \ | | ## / /| | | | | | / /| /| | | | | \| | / /| /| | | | | | | | ## / / | | | | | | / / |__/ | | | | | |\ | / / |__/ | | | | | | | | ## / / | | | |_| | / / | | | | | | \ | / / | | | |_| | | |___ ## /_/ |_| |_____/ /_/ |_| |_| |_| \_| /_/ |_| |_____/ |_____| ## ## |__ |__ o _|_ ___ __ __ o |__, ___ ## -- |__) (__| (__(__( | ) | |_, (__/_ | ) ) | | \ (__/_ ## | ## ## Originated as a simple idea back in 2004, it was forgotten due to ## lack of my 'Small' coding skills. However I have progressed in recent ## months and somehow crossed that old post with this concept in it. So ## naturally I challenged myself to see if I could do it, and voila! I ## could <img src='http://img.amxx.pl/public/style_emoticons/<#EMO_DIR#>/smile.gif' class='bbc_emoticon' alt=':)' /> ## ## Once you join, you play a normal person for the first round, and for ## all remaining rounds your CT or TE models are custom. They now read ## "ADMIN" on front and back, and also have small "A" patches on the arms. ## I designed these models myself, it's very easy, just bring the textures ## into photoshop, tweak out, and replace. ## ## Enjoy! ## ## ## CHANGELOG ##------------------------------------------------------------------------ ## 2) v1.1.1 - Fixed missing event ## 1) v1.1.0 - Fixed VIP and other model bugs ## ## ## INSTALLATION ##------------------------------------------------------------------------ ## 1) Unzip (which you may have done already) ## 2) Place 'amx_adminmodel.amxx' in 'cstrike/addons/amxmodx/plugins' ## 3) Add a line in 'configs/plugins.ini' containing 'amx_adminmodel.amxx' ## 4) Put the 'admin_ct' and 'admin_te' folders into 'cstrike/models' folder ## 5) -- Visit www.SteamTools.net and enjoy your new plugin! ## ## ## ## THE CVARs ##------------------------------------------------------------------------ ## ## No CVARs for this plugin <img src='http://img.amxx.pl/public/style_emoticons/<#EMO_DIR#>/smile.gif' class='bbc_emoticon' alt=':)' /> ## ## ##########################################################################*/ #include <amxmodx> #include <amxmisc> #include <cstrike> public plugin_init() { register_plugin("AMX Admin Model", "1.1.1", "whitemike") register_event("ResetHUD", "resetModel", "b") return PLUGIN_CONTINUE } public plugin_precache() { precache_model("models/player/admin_ct/admin_ct.mdl") precache_model("models/player/admin_te/admin_te.mdl") return PLUGIN_CONTINUE } public resetModel(id, level, cid) { if(!is_user_connected(id)) return PLUGIN_CONTINUE; if (get_user_flags(id) & ADMIN_KICK) { new CsTeams:userTeam = cs_get_user_team(id) if (userTeam == CS_TEAM_T) { cs_set_user_model(id, "admin_te") } else if(userTeam == CS_TEAM_CT) { cs_set_user_model(id, "admin_ct") } else { cs_reset_user_model(id) } } return PLUGIN_CONTINUE }
Powinno być OK
Unikalna sieć serwerów CS 1.6 && TF2 FearLex.pl
Serwery CS 1.6: JailBreak, ZombieMod Ultimate (nowe ZP), DiabloMod 201 lvl, TeamPlay
ORAZ
Serwer TF2 FFA
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych