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

[ROZWIĄZANE] adminlisten blad w logach


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

#1 AllegroPwa

    Zaawansowany

  • Użytkownik

Reputacja: 9
Nowy

  • Postów:120
  • GG:
  • Imię:Daniel
  • Lokalizacja:woj.Lubelskie!
Offline

Napisano 01.03.2012 18:08

Wgrałem plugin: adminlisten.amxx (admin widzisz wszystkie rozmowy na say) i w logach wyskoczył mi błąd:

L 03/01/2012 - 15:51:50: Start of error session.
L 03/01/2012 - 15:51:50: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20120301.log")
L 03/01/2012 - 15:51:50: [AMXX] Run time error 4 (plugin "adminlisten.amxx") - debug not enabled!
L 03/01/2012 - 15:51:50: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

Dopisałem więc "debug" i teraz wpis w logach to:

L 03/01/2012 - 16:39:09: Start of error session.
L 03/01/2012 - 16:39:09: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20120301.log")
L 03/01/2012 - 16:39:09: [AMXX] Displaying debug trace (plugin "adminlisten.amxx")
L 03/01/2012 - 16:39:09: [AMXX] Run time error 4: index out of bounds
L 03/01/2012 - 16:39:09: [AMXX]    [0] 2767.attach::catch_say (line 91)
L 03/01/2012 - 16:39:15: [AMXX] Displaying debug trace (plugin "adminlisten.amxx")
L 03/01/2012 - 16:39:15: [AMXX] Run time error 4: index out of bounds
L 03/01/2012 - 16:39:15: [AMXX]    [0] 2767.attach::catch_say (line 91)
L 03/01/2012 - 16:39:26: [AMXX] Displaying debug trace (plugin "adminlisten.amxx")
L 03/01/2012 - 16:39:26: [AMXX] Run time error 4: index out of bounds
L 03/01/2012 - 16:39:26: [AMXX]    [0] 2767.attach::catch_say (line 62)
L 03/01/2012 - 16:39:26: [AMXX] Displaying debug trace (plugin "adminlisten.amxx")


Mój plugins.ini wygląda tak:

/// GŁóWNE
ad_manager_array.amxx				 ; Reklamy w say'u
ptb.amxx							  ; Rownanie druzyn
ex.interp.amxx					    ; interp
admin_spec_esp.amxx				   ; Wh u Admina po śmierci
afkbombtransfer.amxx				  ; Wywala pake od gracza ktory jest afk
hpk.amxx							  ; Wywala za ping
autobuyfix.amxx					   ; Anty Crash
afkkisss.amxx						 ; Wywala afk
dontsayips.amxx					   ; Zakaz Reklamowania
Allow_round_finish.amxx			   ; Dokonczenie rudny mimo uplywu czasu
reklama.amxx						  ; Zakaz reklamowania stron w nicku
blackedit.amxx					    ; screeny
server.amxx						   ; lista serverow
;ultimate_rslot.amxx				   ; przekierowanie
amx_ip.amxx						   ; IP graczy
extreme_bancfg.amxx				   ; banowanie na config
luciaHallucination.amxx			   ; halucynacje
adminlisten.amxx debug				  ; Admin widzi wszystkie rozmowy
simple_redirect.amxx				  ; przekierowanie


descriptive_fire_in_the_hole.amxx	 ; Typ rzuconego granata
flash.amxx						    ; Pokazuje kto Ci flesha rzucil
bcd_hudtimer.amxx					 ; Licznik paki
vip.amxx							  ; vip

  • +
  • -
  • 0

Wygraj Konkurs TOP 15 i zgarnij cenne nagrody! (Konta STEAM z grami Call Of Juarez The Cartel, Battlefield 3, Counter Strike 1.6 oraz PIENIĄDZE w formie przelewu bądź doładowania telefonu) Więcej szczegółów:

http://gamesign.pl/i...-15/#entry14020

Zapraszam na serwer ONLY DUST2 / INFERNO / NUKE [Gamesign.pl] - 31.186.83.163:27081

b_350_20_323957_202743_F19A15_111111.png

 


#2 Pingwinek

    Pomocny

  • Użytkownik

Reputacja: 4
Nowy

  • Postów:45
  • Lokalizacja:Olsztyn
Offline

Napisano 01.03.2012 18:36

ten plugin zawsze powodował takie błęd, nawet rzekomo poprawiony... może w końcu ktoś się podejmie poprawienia? Również byłbym wdzięczny.
  • +
  • -
  • 1

#3 AllegroPwa

    Zaawansowany

  • Autor tematu
  • Użytkownik

Reputacja: 9
Nowy

  • Postów:120
  • GG:
  • Imię:Daniel
  • Lokalizacja:woj.Lubelskie!
Offline

Napisano 01.03.2012 21:17

A więc? Zna ktoś przyczynę tego błędu? Oraz jakąś metodę poprawy?
  • +
  • -
  • 0

Wygraj Konkurs TOP 15 i zgarnij cenne nagrody! (Konta STEAM z grami Call Of Juarez The Cartel, Battlefield 3, Counter Strike 1.6 oraz PIENIĄDZE w formie przelewu bądź doładowania telefonu) Więcej szczegółów:

http://gamesign.pl/i...-15/#entry14020

Zapraszam na serwer ONLY DUST2 / INFERNO / NUKE [Gamesign.pl] - 31.186.83.163:27081

b_350_20_323957_202743_F19A15_111111.png

 


#4 TomekPL

    Pomocny

  • Użytkownik

Reputacja: 6
Nowy

  • Postów:41
  • GG:
  • Imię:Tomek
  • Lokalizacja:Szczecin
Offline

Napisano 02.03.2012 13:00

daj sma pluginu
  • +
  • -
  • 0

#5 AllegroPwa

    Zaawansowany

  • Autor tematu
  • Użytkownik

Reputacja: 9
Nowy

  • Postów:120
  • GG:
  • Imię:Daniel
  • Lokalizacja:woj.Lubelskie!
Offline

Napisano 03.03.2012 15:05

//ported by Oj@eKiLLzZz

// *******************************************************************************

// Admin Listen 2.3x, Also Copyright 2004, /dev/ urandom. No Warranties,

// either expressed or implied.

// Props to Maxim for the remake of Luke Sankeys original plugin.

// Props to Luke Sankey for the original AdminMod plugin (SankListen).

// Inspired by PsychoListen by PsychoGuard

//

// Allows administrators (with flag "n") to see all team chats, and dead chats.

//

// Use amx_adminlisten_voice 0|1 to turn off and on the hearing of voicecomms



// In 2.0 the Chat Engine was totally rewritten from ground up,

// a different, more efficent method, was used to pick up say messages,

// also fewer calculations and variables in this version.

//

// 2.1 - VoiceComm rewrite, fixed a few typos in the comments.

//

// 2.2 - Updated for Condition Zero 1.2, Note that while I've attempted to keep

//	   backwards compatability with other mods, I cannot vouch for it working

//	   in other mods as I only have a CS:CZ server to test it in.

//

// 2.3 - Updated to work with Counter-Strike after steams update June 14, 2004.

// *******************************************************************************





#include <amxmodx>

#include <amxmisc>

#include <engine>



// Counter for the SayText event.

new count[32][32]     

new g_voice_status[2]



public catch_say(id)

{

    new reciever = read_data(0) //Reads the ID of the message recipient

    new sender = read_data(1)   //Reads the ID of the sender of the message

    new message[151]		    //Variable for the message

    new channel[151]

    new sender_name[32]



    if (is_running("czero")||is_running("cstrike"))

    {

           read_data(2,channel,150)

           read_data(4,message,150)

           get_user_name(sender, sender_name, 31)

    } else {

   		 read_data(2,message,150)

    }

   

    // DEBUG.

    // console_print(0, "DEBUG MESSAGE: %s", message)

    // console_print(0, "DEBUG channel: %s", channel)

    // console_print(0, "DEBUG sender: %s, %i", sender_name, sender)

    // console_print(0, "DEBUG receiver: %i", reciever)

   

       //With the SayText event, the message is sent to the person who sent it last.

       //It's sent to everyone else before the sender recieves it.



    // Keeps count of who recieved the message

       count[sender][reciever] = 1		  

    // If current SayText message is the last then...

       if (sender == reciever)

    {	  

	          new player_count = get_playersnum()  //Gets the number of players on the server

	          new players[32] //Player IDs

	          get_players(players, player_count, "c")



	          for (new i = 0; i < player_count; i++)

        {

            // If the player is an admin...

	             if (get_user_flags(players[i]) & ADMIN_LEVEL_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/cool.png' class='bbc_emoticon' alt='B)' />

            {     

                // If the player did not recieve the message then...

		                if (count[sender][players[i]] != 1)

                {			  

			                   message_begin(MSG_ONE, get_user_msgid("SayText"),{0,0,0},players[i])

			                   // Appends the ID of the sender to the message, so the engine knows what color to make the name.

			                   write_byte(sender)

			                   // Appends the message to the message (depending on the mod).

                    if (is_running("czero")||is_running("cstrike"))

   	                    {

                           write_string(channel)

   	                        write_string(sender_name)

   	                    }

			                   write_string(message)

			                   message_end()

		                }

	             }

	             count[sender][players[i]] = 0  //Set everyone's counter to 0 so it's ready for the next SayText

	          }

       }

    

       return PLUGIN_CONTINUE

}



public plugin_init(){

   register_plugin("AdminListen","2.3x","/dev/ urandom")

   register_srvcmd("amx_adminlisten_voice","voice_status")

   register_event("SayText","catch_say","b")

   return PLUGIN_CONTINUE

}



public plugin_modules(){

   require_module("engine")

}



// *********************

// VoiceComm Stuff

// *********************



public client_infochanged(id)

{

   if ((get_user_flags(id) & ADMIN_LEVEL_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/cool.png' class='bbc_emoticon' alt='B)' /> && equal(g_voice_status,"1")) set_speak(id, 4)

}



public client_connect(id)

{

   if ((get_user_flags(id) & ADMIN_LEVEL_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/cool.png' class='bbc_emoticon' alt='B)' /> && equal(g_voice_status,"1")) set_speak(id, 4)

}



public voice_status(){

   read_argv(1,g_voice_status,1)

   new player_count = get_playersnum()

   new players[32] //Player IDs

   get_players(players, player_count, "c")

   for (new i = 0; i < player_count; i++) {

	  if ((get_user_flags(players[i]) & ADMIN_LEVEL_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/cool.png' class='bbc_emoticon' alt='B)' />){	     

		 if (equal(g_voice_status,"0")) set_speak(players[i], 0)

		 if (equal(g_voice_status,"1")) set_speak(players[i], 4)

	  }

   }

}




  • +
  • -
  • 0

Wygraj Konkurs TOP 15 i zgarnij cenne nagrody! (Konta STEAM z grami Call Of Juarez The Cartel, Battlefield 3, Counter Strike 1.6 oraz PIENIĄDZE w formie przelewu bądź doładowania telefonu) Więcej szczegółów:

http://gamesign.pl/i...-15/#entry14020

Zapraszam na serwer ONLY DUST2 / INFERNO / NUKE [Gamesign.pl] - 31.186.83.163:27081

b_350_20_323957_202743_F19A15_111111.png

 


#6 kapi10072

    Wszechpomocny

  • Użytkownik

Reputacja: 70
Pomocny

  • Postów:318
  • Steam:steam
  • Imię:Kacper
  • Lokalizacja:Polska
Offline

Napisano 03.03.2012 18:37

Wrzuc ten oraz dopisz do plugins.ini debug po nazwie pluginu.
Czyli adminlisten.amxx debug


//ported by Oj@eKiLLzZz
// *******************************************************************************
// Admin Listen 2.3x, Also Copyright 2004, /dev/ urandom. No Warranties,
// either expressed or implied.
// Props to Maxim for the remake of Luke Sankeys original plugin.
// Props to Luke Sankey for the original AdminMod plugin (SankListen).
// Inspired by PsychoListen by PsychoGuard
//
// Allows administrators (with flag "n") to see all team chats, and dead chats.
//
// Use amx_adminlisten_voice 0|1 to turn off and on the hearing of voicecomms

// In 2.0 the Chat Engine was totally rewritten from ground up,
// a different, more efficent method, was used to pick up say messages,
// also fewer calculations and variables in this version.
//
// 2.1 - VoiceComm rewrite, fixed a few typos in the comments.
//
// 2.2 - Updated for Condition Zero 1.2, Note that while I've attempted to keep
// backwards compatability with other mods, I cannot vouch for it working
// in other mods as I only have a CS:CZ server to test it in.
//
// 2.3 - Updated to work with Counter-Strike after steams update June 14, 2004.
// *******************************************************************************


#include <amxmodx>
#include <amxmisc>
#include <engine>

// Counter for the SayText event.
new count[32][32]
new g_voice_status[2]

public catch_say(id)
{
new reciever = read_data(0) //Reads the ID of the message recipient
new sender = read_data(1) //Reads the ID of the sender of the message
new message[151] //Variable for the message
new channel[151]
new sender_name[32]

if (is_running("czero")||is_running("cstrike"))
{
read_data(2,channel,150)
read_data(4,message,150)
get_user_name(sender, sender_name, 31)
} else {
read_data(2,message,150)
}

// DEBUG.
// console_print(0, "DEBUG MESSAGE: %s", message)
// console_print(0, "DEBUG channel: %s", channel)
// console_print(0, "DEBUG sender: %s, %i", sender_name, sender)
// console_print(0, "DEBUG receiver: %i", reciever)

//With the SayText event, the message is sent to the person who sent it last.
//It's sent to everyone else before the sender recieves it.

// Keeps count of who recieved the message
count[sender][reciever] = 1
// If current SayText message is the last then...
if (sender == reciever)
{
new player_count = get_playersnum() //Gets the number of players on the server
new players[32] //Player IDs
get_players(players, player_count, "c")

for (new i = 0; i < player_count; i++)
{
if(is_user_connected(i))
// If the player is an admin...
if (get_user_flags(players[i]) & ADMIN_LEVEL_B)
{
// If the player did not recieve the message then...
if (count[sender][players[i]] != 1)
{
message_begin(MSG_ONE, get_user_msgid("SayText"),{0,0,0},players[i])
// Appends the ID of the sender to the message, so the engine knows what color to make the name.
write_byte(sender)
// Appends the message to the message (depending on the mod).
if (is_running("czero")||is_running("cstrike"))
{
write_string(channel)
write_string(sender_name)
}
write_string(message)
message_end()
}
}
count[sender][players[i]] = 0 //Set everyone's counter to 0 so it's ready for the next SayText
}
}

return PLUGIN_CONTINUE
}

public plugin_init(){
register_plugin("AdminListen","2.3x","/dev/ urandom")
register_srvcmd("amx_adminlisten_voice","voice_status")
register_event("SayText","catch_say","b")
return PLUGIN_CONTINUE
}

public plugin_modules(){
require_module("engine")
}

// *********************
// VoiceComm Stuff
// *********************

public client_infochanged(id)
{
if ((get_user_flags(id) & ADMIN_LEVEL_B) && equal(g_voice_status,"1")) set_speak(id, 4)
}

public client_connect(id)
{
if ((get_user_flags(id) & ADMIN_LEVEL_B) && equal(g_voice_status,"1")) set_speak(id, 4)
}

public voice_status(){
read_argv(1,g_voice_status,1)
new player_count = get_playersnum()
new players[32] //Player IDs
get_players(players, player_count, "c")
for (new i = 0; i < player_count; i++) {
if ((get_user_flags(players[i]) & ADMIN_LEVEL_B)){
if (equal(g_voice_status,"0")) set_speak(players[i], 0)
if (equal(g_voice_status,"1")) set_speak(players[i], 4)
}
}
}


  • +
  • -
  • 0

Dołączona grafika
Najlepszy serwer TeamPlay w Polsce !
Pomogłem, wejdź ;)
Zapraszam na BHZ-Game.pl
Bo nie liczą się fragi tylko dobra atmosfera ;D


#7 AllegroPwa

    Zaawansowany

  • Autor tematu
  • Użytkownik

Reputacja: 9
Nowy

  • Postów:120
  • GG:
  • Imię:Daniel
  • Lokalizacja:woj.Lubelskie!
Offline

Napisano 06.03.2012 11:13

OKej, na razie jest wporządku :) W logach nic nie sypie błędami. Dziękuje Ci w takim razie, temat można zamknąć :)
  • +
  • -
  • 0

Wygraj Konkurs TOP 15 i zgarnij cenne nagrody! (Konta STEAM z grami Call Of Juarez The Cartel, Battlefield 3, Counter Strike 1.6 oraz PIENIĄDZE w formie przelewu bądź doładowania telefonu) Więcej szczegółów:

http://gamesign.pl/i...-15/#entry14020

Zapraszam na serwer ONLY DUST2 / INFERNO / NUKE [Gamesign.pl] - 31.186.83.163:27081

b_350_20_323957_202743_F19A15_111111.png

 


#8 Ojciec Dyrektor

    papa smerf.

  • Przyjaciel

Reputacja: 477
Wszechobecny

  • Postów:3 035
  • Imię:Paweł
  • Lokalizacja:Rabka-Zdrój
Offline

Napisano 06.03.2012 14:05

Wiadomość wygenerowana automatycznie


Ten temat został zamknięty przez moderatora.

Powód: Pomoc udzielona

Jeśli się z tym nie zgadzasz, Dołączona grafika raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.


Z pozdrowieniami,
Zespół AMXX.PL
  • +
  • -
  • 0




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

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