←  Problemy

AMXX.pl: Support AMX Mod X i SourceMod

»

[ROZWIĄZANE] Błąd w logach

Zablokowany

  • +
  • -
killerosw - zdjęcie killerosw 23.02.2012

Witam wszystkich. Otóż stawiam serwer TP i po pierwszym dniu działania mam błąd w logach, spowodowany pluginem vip.amxx. Wrzucam info z logów i liczę na pomoc z Waszej strony!

L 02/23/2012 - 14:34:23: Start of error session.
L 02/23/2012 - 14:34:23: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20120223.log")
L 02/23/2012 - 14:34:23: Invalid player id 0
L 02/23/2012 - 14:34:23: [AMXX] Run time error 10 (plugin "vip.amxx") (native "get_user_attacker") - debug not enabled!
L 02/23/2012 - 14:34:23: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 02/23/2012 - 14:34:23: Invalid player id 0
L 02/23/2012 - 14:34:23: [AMXX] Run time error 10 (plugin "vip.amxx") (native "get_user_attacker") - debug not enabled!
L 02/23/2012 - 14:34:23: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 02/23/2012 - 15:37:36: Start of error session.
L 02/23/2012 - 15:37:36: Info (map "de_nuke") (file "addons/amxmodx/logs/error_20120223.log")
L 02/23/2012 - 15:37:36: Invalid player id 0
L 02/23/2012 - 15:37:36: [AMXX] Run time error 10 (plugin "vip.amxx") (native "get_user_attacker") - debug not enabled!
L 02/23/2012 - 15:37:36: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 02/23/2012 - 15:37:36: Invalid player id 0
L 02/23/2012 - 15:37:36: [AMXX] Run time error 10 (plugin "vip.amxx") (native "get_user_attacker") - debug not enabled!
L 02/23/2012 - 15:37:36: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 02/23/2012 - 16:04:20: Start of error session.
L 02/23/2012 - 16:04:20: Info (map "de_inferno") (file "addons/amxmodx/logs/error_20120223.log")
L 02/23/2012 - 16:04:20: Invalid player id 0
L 02/23/2012 - 16:04:20: [AMXX] Run time error 10 (plugin "vip.amxx") (native "get_user_attacker") - debug not enabled!
L 02/23/2012 - 16:04:20: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 02/23/2012 - 16:04:20: Invalid player id 0
L 02/23/2012 - 16:04:20: [AMXX] Run time error 10 (plugin "vip.amxx") (native "get_user_attacker") - debug not enabled!
L 02/23/2012 - 16:04:20: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 02/23/2012 - 16:08:27: Invalid player id 0
L 02/23/2012 - 16:08:27: [AMXX] Run time error 10 (plugin "vip.amxx") (native "get_user_attacker") - debug not enabled!
L 02/23/2012 - 16:08:27: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 02/23/2012 - 16:08:27: Invalid player id 0
L 02/23/2012 - 16:08:27: [AMXX] Run time error 10 (plugin "vip.amxx") (native "get_user_attacker") - debug not enabled!
L 02/23/2012 - 16:08:27: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 02/23/2012 - 16:38:52: Start of error session.
L 02/23/2012 - 16:38:52: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20120223.log")
L 02/23/2012 - 16:38:52: Invalid player id 0
L 02/23/2012 - 16:38:52: [AMXX] Run time error 10 (plugin "vip.amxx") (native "get_user_attacker") - debug not enabled!
L 02/23/2012 - 16:38:52: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 02/23/2012 - 16:38:52: Invalid player id 0
L 02/23/2012 - 16:38:52: [AMXX] Run time error 10 (plugin "vip.amxx") (native "get_user_attacker") - debug not enabled!
L 02/23/2012 - 16:38:52: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 02/23/2012 - 16:42:47: Invalid player id 0
L 02/23/2012 - 16:42:47: [AMXX] Run time error 10 (plugin "vip.amxx") (native "get_user_attacker") - debug not enabled!
L 02/23/2012 - 16:42:47: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 02/23/2012 - 16:42:47: Invalid player id 0
L 02/23/2012 - 16:42:47: [AMXX] Run time error 10 (plugin "vip.amxx") (native "get_user_attacker") - debug not enabled!
L 02/23/2012 - 16:42:47: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 02/23/2012 - 17:09:51: Start of error session.
L 02/23/2012 - 17:09:51: Info (map "de_inferno") (file "addons/amxmodx/logs/error_20120223.log")
L 02/23/2012 - 17:09:51: Invalid player id 0
L 02/23/2012 - 17:09:51: [AMXX] Run time error 10 (plugin "vip.amxx") (native "get_user_attacker") - debug not enabled!
L 02/23/2012 - 17:09:51: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 02/23/2012 - 17:09:51: Invalid player id 0
L 02/23/2012 - 17:09:51: [AMXX] Run time error 10 (plugin "vip.amxx") (native "get_user_attacker") - debug not enabled!
L 02/23/2012 - 17:09:51: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 02/23/2012 - 17:30:36: Invalid player id 0
L 02/23/2012 - 17:30:36: [AMXX] Run time error 10 (plugin "vip.amxx") (native "get_user_attacker") - debug not enabled!
L 02/23/2012 - 17:30:36: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 02/23/2012 - 17:30:36: Invalid player id 0
L 02/23/2012 - 17:30:36: [AMXX] Run time error 10 (plugin "vip.amxx") (native "get_user_attacker") - debug not enabled!
L 02/23/2012 - 17:30:36: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

Z gory dziękuję za pomoc :)
Odpowiedz

  • +
  • -
psilocybe - zdjęcie psilocybe 23.02.2012

Dopisz debug po nazwie pluginu vip.amxx i wstaw logi jeszcze raz :)

W plugin.ini ma to wyglądać tak:

vip.amxx debug

Od razu możesz dołączyć *.sma tego pluginu aby ktoś obeznany mógł to przeanalizować :)
Użytkownik psilocybe edytował ten post 23.02.2012 19:48
Odpowiedz

Roller - zdjęcie Roller 23.02.2012

w plugins.ini dopisz:

vip.amxx debug

zamiast:
vip.amxx


Być może pomoże, bynajmiej ja tak miałem.

Uprzedził mnie :(
Użytkownik Roller edytował ten post 23.02.2012 19:48
Odpowiedz

  • +
  • -
psilocybe - zdjęcie psilocybe 23.02.2012

To nie pomoże ale będzie wtedy w error_log szczegółowy opis błędu, wtedy można sprawdzić *.sma i ewentualnie edytować.
Odpowiedz

Roller - zdjęcie Roller 23.02.2012

No sma zdecydowanie było by przydatne, oraz szczegółowe logi wynikające z błędu pluginu. Jeśli już się takowe utworzyły.
Odpowiedz

  • +
  • -
psilocybe - zdjęcie psilocybe 23.02.2012

Sprawdź w pliku modules.ini czy masz odblokowany moduł fun.

Jeżeli masz
;fun

To usuń ; aby było:
fun

Jeśli plugin dalej będzie powodował problemy to poczekaj na opinie ludzi którzy programują w Pawnie, zapewne pomogą ;)

Peace.
Odpowiedz

  • +
  • -
killerosw - zdjęcie killerosw 24.02.2012

Odblokowany moduł! Czekam na inne propozycje, a dla Ciebie oczywiście karma :)
Odpowiedz

Roller - zdjęcie Roller 24.02.2012

W logach wyraźnie piszę, z którymi funkcjami jest problem. Odnajdź je, zrób spis i się pomyśli.
Odpowiedz

  • +
  • -
killerosw - zdjęcie killerosw 24.02.2012

Ja jestem całkowicie zielony z pluginami... Możesz jaśniej? Niżej daje kod z .sma, w którym jest mowa o "get_user_attacker".

public on_damage(id)
{
new attacker = get_user_attacker(id)
#if defined DAMAGE_RECIEVED
// id should be connected if this message is sent, but lets check anyway
if ( is_user_connected(id) && is_user_connected(attacker) )
if (get_user_flags(attacker) & ADMIN_LEVEL_H)
{

public Damage(id)
{
new weapon, hitpoint, attacker = get_user_attacker(id,weapon,hitpoint)
if(attacker<=maxplayers && is_user_alive(attacker) && attacker!=id)
if (get_user_flags(attacker) & ADMIN_LEVEL_H)
{
  new money = read_data(2) * get_pcvar_num(mpd)
  if(hitpoint==1) money += get_pcvar_num(mhb)
  cs_set_user_money(attacker,cs_get_user_money(attacker) + money)
}
Odpowiedz

Roller - zdjęcie Roller 25.02.2012

Napisaniu pluginów ja się nie znam (chyba, że korzystanie ze wzoru lub automatyczne funkcje). Usuń ten plugin, a poszukaj jakiegoś innego zamiennika lub poproś by ci zrobiono taki na życzenie. Chyba, będzie to najlepszym rozwiązaniem.
Odpowiedz

  • +
  • -
Jak się nazwać - zdjęcie Jak się nazwać 25.02.2012


public on_damage(id)
{
if(!is_user_connected(id)) return
new attacker = get_user_attacker(id)
#if defined DAMAGE_RECIEVED
// id should be connected if this message is sent, but lets check anyway
if ( is_user_connected(attacker) )
if (get_user_flags(attacker) & ADMIN_LEVEL_H)
{

oraz

public Damage(id)
{
if(!is_user_connected(id)) return
new weapon, hitpoint, attacker = get_user_attacker(id,weapon,hitpoint)
if(attacker<=maxplayers && is_user_alive(attacker) && attacker!=id)
if (get_user_flags(attacker) & ADMIN_LEVEL_H)
{
new money = read_data(2) * get_pcvar_num(mpd)
if(hitpoint==1) money += get_pcvar_num(mhb)
cs_set_user_money(attacker,cs_get_user_money(attacker) + money)
}


@Up

Napisaniu pluginów ja się nie znam

to może się nie wypowiadaj?
Użytkownik Jak się nazwać edytował ten post 25.02.2012 09:36
Odpowiedz

  • +
  • -
killerosw - zdjęcie killerosw 25.02.2012

Pomoże ktoś, zamiast się przekomarzać? Potrzebuje pilnej pomocy, a jeszcze nic konkretnego nie dostałem :) Proszę Was!
Hiroshima (25.02.2012 20:10):
nie zauważyłeś postu wyżej?
Odpowiedz

Roller - zdjęcie Roller 25.02.2012

Może byś zacytował całą wypowiedź, a nie wycinasz 3 słowa ? Ludziom to brak kultury!
*****, skoro nie odniosłem się do tego pluginu to powiedziałem jaki jest najszybszy sposób na naprawienie problemu, a ty pieprzysz głupoty i jakieś wielkie aluzje..w dodatku. Aż ponosi.
Hiroshima (25.02.2012 20:11):
mnie też ponosi jak nie pomagasz a wcinasz swoje 3 słowa w taki sposób, że robi się niedobrze.

Użytkownik Roller edytował ten post 25.02.2012 15:51
Odpowiedz

  • +
  • -
killerosw - zdjęcie killerosw 27.02.2012

Panie adminie/moderatorze, nie skapnalem się, że to jest poprawiony kod. Dziękuję za zwrocenie mojej uwagi :) Problem rozwiązany! Jak najbardziej + dla osob pomagających :) Można zamnkąć!
Odpowiedz

  • +
  • -
Hiroshima - zdjęcie Hiroshima 27.02.2012

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
Odpowiedz
Zablokowany