Errori in logs

Discutii legate de instalarea, configurarea si modificarea unui server de Counter-Strike.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
StiCk Camper
Membru, skill +1
Membru, skill +1
Posts: 373
Joined: 22 Mar 2010, 02:04
Detinator Steam: Da
CS Status: Ma joc :)
Detinator server CS: Cs.ArenaDevils.Com
SteamID: marcu93
Reputatie: Membru Club eXtreamCS (2 luni)
Location: Bucuresti
Has thanked: 11 times
Been thanked: 6 times
Contact:

07 Aug 2010, 10:48

Am gasit errori in logs

Code: Select all

L 08/05/2010 - 22:32:51: Start of error session.
L 08/05/2010 - 22:32:51: Info (map "cs_assault") (file "addons/amxmodx/logs/error_20100805.log")
L 08/05/2010 - 22:32:51: [CSTRIKE] Invalid player 4
L 08/05/2010 - 22:32:51: [AMXX] Run time error 10 (plugin "resetscore.amxx") (native "cs_set_user_deaths") - debug not enabled!
L 08/05/2010 - 22:32:51: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2010 - 22:52:27: Start of error session.
L 08/05/2010 - 22:52:27: Info (map "de_dust") (file "addons/amxmodx/logs/error_20100805.log")
L 08/05/2010 - 22:52:27: [CSTRIKE] Invalid player 19
L 08/05/2010 - 22:52:27: [AMXX] Run time error 10 (plugin "resetscore.amxx") (native "cs_set_user_deaths") - debug not enabled!
L 08/05/2010 - 22:52:27: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2010 - 23:24:26: [CSTRIKE] Invalid player 13
L 08/05/2010 - 23:24:26: [AMXX] Run time error 10 (plugin "plmenu.amxx") (native "cs_set_user_team") - debug not enabled!
L 08/05/2010 - 23:24:26: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
ce pot face sa nu mai fie aceste errori ?
Image
Connect Cs.ArenaDevils.Com
•Viziteaza: ArenaDevils.Com
RoyalServer 2
fara_cuvinte
Membru, skill 0
Membru, skill 0
Posts: 29
Joined: 02 Jul 2010, 19:36
Detinator Steam: Nu
CS Status: Citesc forumul eXpandedCS.com
Detinator server CS: eXpandedCS.com
Contact:

07 Aug 2010, 16:28

Incearca sa scrii dupa
resetscore.amxx debug
sau dezactiveaza'l
Image
Si eu sunt prost , dar cand ma uit in jurul meu prind curaj .

Comunitatea eXpandedCS.com
Nu uitati : intrati , reintrati , spuneti-le si la prieteni , ca e tare .
http://www.eXpandedCS.com
User avatar
KronoS eXtream
Fost administrator
Fost administrator
Posts: 4378
Joined: 02 Apr 2009, 19:18
Detinator Steam: Da
Reputatie: Fost administrator
Fost detinator Zombie-Land.eXtream.Ro
Contribuitor
Fost Scripter eXtreamCS
Dezvoltator al listei de seriozitate eXtreamCS
Location: Bucharest
Has thanked: 551 times
Been thanked: 820 times
Contact:

07 Aug 2010, 16:43

Posteaza sursa.Erorile apar deoarece jucatorii folosesc comanda si se deconecteaza...
Cu o variabila globala dispar erorile :P
Nu efectuez tranzactii pe mess, skype etc. Aveti grija la indivizii care se dau drept mine!
Nu mai ofer suport asa ca nu imi mai trimiteti mesaje in legatura cu asta!


Zombie Plague Shade 1.2-debug1 [with Item Limiter] (12 September 2015) - Bombardier Branch
StiCk Camper
Membru, skill +1
Membru, skill +1
Posts: 373
Joined: 22 Mar 2010, 02:04
Detinator Steam: Da
CS Status: Ma joc :)
Detinator server CS: Cs.ArenaDevils.Com
SteamID: marcu93
Reputatie: Membru Club eXtreamCS (2 luni)
Location: Bucuresti
Has thanked: 11 times
Been thanked: 6 times
Contact:

07 Aug 2010, 16:50

Uite sursa aici | Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

#define adtime    600.0 //Default of 10 minuites

new pcvar_Advertise
new pcvar_Display

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 reset_score ( 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 ( )
{
   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 )
{
   if(get_pcvar_num(pcvar_Advertise) == 1)
   {
      set_task(10.0, "connectmessage", id, _, _, "a", 1)
   }
}

public connectmessage ( id )
{
   if(is_user_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()
      }
   }
}
Image
Connect Cs.ArenaDevils.Com
•Viziteaza: ArenaDevils.Com
User avatar
KronoS eXtream
Fost administrator
Fost administrator
Posts: 4378
Joined: 02 Apr 2009, 19:18
Detinator Steam: Da
Reputatie: Fost administrator
Fost detinator Zombie-Land.eXtream.Ro
Contribuitor
Fost Scripter eXtreamCS
Dezvoltator al listei de seriozitate eXtreamCS
Location: Bucharest
Has thanked: 551 times
Been thanked: 820 times
Contact:

07 Aug 2010, 17:03

| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

#define adtime    600.0 //Default of 10 minuites

new pcvar_Advertise
new pcvar_Display
new 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()
      }
   }
}
Nu efectuez tranzactii pe mess, skype etc. Aveti grija la indivizii care se dau drept mine!
Nu mai ofer suport asa ca nu imi mai trimiteti mesaje in legatura cu asta!


Zombie Plague Shade 1.2-debug1 [with Item Limiter] (12 September 2015) - Bombardier Branch
StiCk Camper
Membru, skill +1
Membru, skill +1
Posts: 373
Joined: 22 Mar 2010, 02:04
Detinator Steam: Da
CS Status: Ma joc :)
Detinator server CS: Cs.ArenaDevils.Com
SteamID: marcu93
Reputatie: Membru Club eXtreamCS (2 luni)
Location: Bucuresti
Has thanked: 11 times
Been thanked: 6 times
Contact:

08 Aug 2010, 03:39

se pare ca nu mai a dat eroarea
Image
Connect Cs.ArenaDevils.Com
•Viziteaza: ArenaDevils.Com
Sekai
Membru, skill 0
Membru, skill 0
Posts: 10
Joined: 14 Aug 2010, 00:11
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com!
Been thanked: 1 time
Contact:

14 Aug 2010, 00:53

#include <cstrike>
#include <fun>

Foloseste modulele cstrike si fun.Uitate in addons/amxmodx/configs la modules.ini, deschidel si vezi sa dispara din fata la cstrike si fun

Code: Select all

;
Post Reply

Return to “Probleme la servere dedicate de Counter-Strike”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 96 guests