Page 1 of 2
Stie cineva de ce sunt erorile astea?
Posted: 20 Aug 2010, 17:35
by dZ#mYreL
Am verificat , ca mi-a fost picat serverul de vreo 3-4 ori , el fiind hostat , pe un dedicat de linux , amxmodx 1.8.1 , dproto ultima versiune , metamod . Si cand am verificat in logs , am un error log ..si nu stiu ce sa ii mai fac ..pana acuma apareau error care necesitau debug in plugins.ini , acuma e altceva ...vedeti mai jos erorile din errorlog :
Code: Select all
L 08/20/2010 - 15:45:57: Start of error session.
L 08/20/2010 - 15:45:57: Info (map "fy_snow") (file "addons/amxmodx/logs/error_20100820.log")
L 08/20/2010 - 15:45:57: [FUN] Invalid player 1
L 08/20/2010 - 15:45:57: [AMXX] Displaying debug trace (plugin "war3ft.amxx")
L 08/20/2010 - 15:45:57: [AMXX] Run time error 10: native error (native "log_amx")
L 08/20/2010 - 15:45:57: [AMXX] [0] clientCommands.inl::CMD_Handle (line 300)
L 08/20/2010 - 15:45:57: [AMXX] [1] clientCommands.inl::cmd_Say (line 267)
Re: Stie cineva de ce sunt erorile astea?
Posted: 20 Aug 2010, 18:02
by ShiNe
Uploadeaza aici fisierul addons/amxmodx/logs/error_20100820.log
Re: Stie cineva de ce sunt erorile astea?
Posted: 20 Aug 2010, 19:01
by dZ#mYreL
Re: Stie cineva de ce sunt erorile astea?
Posted: 21 Aug 2010, 00:23
by ShiNe
Pune continutul in sursa. Nu merge sa downloadez :|
Re: Stie cineva de ce sunt erorile astea?
Posted: 21 Aug 2010, 00:24
by Brifcor
war3ft.amxx mi se pare ca ai o problema cu pluginul asta ..Pana nu pui log nu stiu sigur
Re: Stie cineva de ce sunt erorile astea?
Posted: 23 Aug 2010, 03:38
by dZ#mYreL
Poftim:
- | Afiseaza codul
L 08/20/2010 - 15:45:57: Start of error session.
L 08/20/2010 - 15:45:57: Info (map "fy_snow") (file "addons/amxmodx/logs/error_20100820.log")
L 08/20/2010 - 15:45:57: [FUN] Invalid player 1
L 08/20/2010 - 15:45:57: [AMXX] Displaying debug trace (plugin "war3ft.amxx")
L 08/20/2010 - 15:45:57: [AMXX] Run time error 10: native error (native "log_amx")
L 08/20/2010 - 15:45:57: [AMXX] [0] clientCommands.inl::CMD_Handle (line 300)
L 08/20/2010 - 15:45:57: [AMXX] [1] clientCommands.inl::cmd_Say (line 267)
Re: Stie cineva de ce sunt erorile astea?
Posted: 25 Aug 2010, 00:38
by dZ#mYreL
Hm ...se mai uita cineva pe aici ? ma ajuta si pe mine cineva .. :)
Re: Stie cineva de ce sunt erorile astea?
Posted: 25 Aug 2010, 09:50
by KronoS eXtream
Salut!Serverul nu pica de la acea eroare.Jucatorul a iesit dupa ce a folosit o comanda in chat ce executa o functie( /ankh , /mole etc.).
Re: Stie cineva de ce sunt erorile astea?
Posted: 25 Aug 2010, 11:37
by dZ#mYreL
- | Afiseaza codul
L 08/24/2010 - 20:02:26: Start of error session.
L 08/24/2010 - 20:02:26: Info (map "cs_assault_mini") (file "addons/amxmodx/logs/error_20100824.log")
L 08/24/2010 - 20:02:26: [CSTRIKE] Invalid player 9
L 08/24/2010 - 20:02:26: [AMXX] Run time error 10 (plugin "ultimate_ss.amxx") (native "cs_set_user_team") - debug not enabled!
L 08/24/2010 - 20:02:26: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
- | Afiseaza codul
L 08/21/2010 - 22:15:58: Start of error session.
L 08/21/2010 - 22:15:58: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20100821.log")
L 08/21/2010 - 22:15:58: [CSTRIKE] Invalid player 1
L 08/21/2010 - 22:15:58: [AMXX] Displaying debug trace (plugin "reset_score.amxx")
L 08/21/2010 - 22:15:58: [AMXX] Run time error 10: native error (native "cs_set_user_deaths")
L 08/21/2010 - 22:15:58: [AMXX] [0] reset_score.sma::reset_score (line 53)
si acestea alte 2 erori ? prima , trebuie sa ii pun debug la ultimate_ss nu ? si la a2a ? ..
Re: Stie cineva de ce sunt erorile astea?
Posted: 25 Aug 2010, 18:16
by KronoS eXtream
Nu rezolvi nimic.Trebuie folosite variabile globale pentru a evita aceste erori.Defapt , sunt aceleasi erori dar la 3 pluginuri.
pentru resetscore:
- | Afiseaza codul
#include <amxmodx>#include <amxmisc>#include <cstrike>#include <fun>#define adtime 600.0 //Default of 10 minuitesnew pcvar_Advertisenew pcvar_Displaynew g_connected[33]public plugin_init(){ register_plugin("Reset Score", "1.0", "Silenttt") //You may type /resetscore or /restartscore register_clcmd("say /resetscore", "reset_score") register_clcmd("say /reset", "reset_score") //This command by default will be set at 0 //Change it to 1 in server.cfg if you want //A message to be shown to advertise this. pcvar_Advertise = register_cvar("sv_rsadvertise", "0") //This command by default is also 0 //Change it to 1 in server.cfg if you want //It to show who reset their scores when they do it pcvar_Display = register_cvar("sv_rsdisplay", "0") if(get_cvar_num("sv_rsadvertise") == 1) { set_task(adtime, "advertise", _, _, _, "b") }}public client_disconnect(id){ g_connected[id] = false return PLUGIN_CONTINUE}public reset_score ( id ){if(g_connected[id]){ //These both NEED to be done twice, otherwise your frags wont //until the next round cs_set_user_deaths(id, 0) set_user_frags(id, 0) cs_set_user_deaths(id, 0) set_user_frags(id, 0) if(get_pcvar_num(pcvar_Display) == 1) { new name[33] get_user_name(id, name, 32) client_print(0, print_chat, "%s Si-a resetat scorul !", name) } else { print ( id, "^x04 [ReaLZone] ^x03 Scorul tau a fost resetat." ); }}}public advertise (id){if(g_connected[id]){ // set_hudmessage(255, 0, 0, -1.0, 0.20, 0, 0.2, 12.0) // show_hudmessage(0, "Scrie in chat /resetscore pentru ati reseta scorul !")}}public client_putinserver ( id ){ g_connected[id] = true if(get_pcvar_num(pcvar_Advertise) == 1) { set_task(10.0, "connectmessage", id, _, _, "a", 1) }}public connectmessage ( id ){ if(g_connected[id]) {// client_print(id, print_chat, "Scrie in chat /resetscore pentru ati reseta scorul ! (rather than reconnecting)") }}print ( id, const message[], {Float,Sql,Result,_}:... ){ new Buffer[128],Buffer2[128] new players[32], index, num, i formatex(Buffer2, sizeof Buffer2 - 1, "%s",message) vformat(Buffer, sizeof Buffer - 1, Buffer2, 3) get_players(players, num,"c") if(id) { message_begin(MSG_ONE,get_user_msgid("SayText"),_,id) write_byte(id) write_string(Buffer) message_end() } else { for( i = 0; i < num;i++ ) { index = players if( !is_user_connected(index)) continue; message_begin(MSG_ONE,get_user_msgid("SayText"),_,index) write_byte(index) write_string( Buffer ) message_end() } }}
Re: Stie cineva de ce sunt erorile astea?
Posted: 25 Aug 2010, 21:48
by dZ#mYreL
Si sursa aceea a ta, e plugin pentru compilat ? sau ce trebuie sa fac cu ea ?
Re: Stie cineva de ce sunt erorile astea?
Posted: 25 Aug 2010, 22:03
by Bananee.
dZ#mYreL wrote:Si sursa aceea a ta, e plugin pentru compilat ? sau ce trebuie sa fac cu ea ?
Da, trebuie sa compilezi ! :)