←  Problemy

AMXX.pl: Support AMX Mod X i SourceMod

»

Problem z przekierowaniem

Zablokowany

JakubL - zdjęcie JakubL 30.12.2010

Witam.

Mam problem z przekierowaniem.

Plugin: Redirect to your new server IP - AlliedModders
Cvary:
redirect_enable 1 // włącz/wyłącz plugin - wymagane (domyślnie = 0 <wyłączone>)
redirect_ip xx.xxx.xxx.xxx // IP serwera na ktore ma byc przekierowanie - wymagane (Domyślnie = "")
redirect_port xxxxx //ORT serwera na ktore ma byc przekierowanie - wymagane jezeli port jest inny niż domyślny (domyślnie = 27015)
redirect_delay 20 // czas (sekundy) po ktorym nastapi przekierowanie - Opcjonalne (domyślnie = 10)
Plugins.ini:
redirect_2_new.amxx     ; cos
Logi:
L 12/30/2010 - 13:34:41: Start of error session.
L 12/30/2010 - 13:34:41: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20101230.log")
L 12/30/2010 - 13:34:41: [AMXX] Plugin ("redirect_2_new.amxx") is setting itself as failed.
L 12/30/2010 - 13:34:41: [AMXX] Plugin says: Plugin disabled by CVar
L 12/30/2010 - 13:34:41: [AMXX] Run time error 1 (plugin "redirect_2_new.amxx") - forced exit
L 12/30/2010 - 13:36:13: Start of error session.
L 12/30/2010 - 13:36:13: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20101230.log")
L 12/30/2010 - 13:36:13: [AMXX] Plugin ("redirect_2_new.amxx") is setting itself as failed.
L 12/30/2010 - 13:36:13: [AMXX] Plugin says: Plugin disabled by CVar
L 12/30/2010 - 13:36:13: [AMXX] Run time error 1 (plugin "redirect_2_new.amxx") - forced exit

Plugin jest i w plugins (.amxx) i w scripting (.sma)

Pozdrawiam
Użytkownik JakubL edytował ten post 30.12.2010 14:16
Odpowiedz

  • +
  • -
Abes Mapper - zdjęcie Abes Mapper 30.12.2010

Pokaż jak dopisałeś do amxx.cfg
Odpowiedz

JakubL - zdjęcie JakubL 30.12.2010

Tak jak dałem w code cvary (kopiowalem z amxx.cfg do tego coda)
Odpowiedz

  • +
  • -
Abes Mapper - zdjęcie Abes Mapper 30.12.2010

To zmień cvary w kodzie źródłowym i skompiluj ponownie
Odpowiedz

JakubL - zdjęcie JakubL 30.12.2010

Nie rozumiem.
Mam coś w sma zrobić? : )
Odpowiedz

  • +
  • -
Abes Mapper - zdjęcie Abes Mapper 30.12.2010

Tak. I nie coś tylko pozmieniać cvary tak jak w amxx.cfg
Odpowiedz

JakubL - zdjęcie JakubL 30.12.2010

Tak?
g_enabled = register_cvar("redirect_enable", "1")
	g_IP = register_cvar("redirect_ip", "xx.xxx.xxx.xxx")
	g_port = register_cvar("redirect_port", "xxxxx")
	g_delay = register_cvar("redirect_delay", "20.0")

Dodano 30 grudzień 2010 - 14:48:
Dzięki działa.
Lecą +.

Można zamknąć.
Odpowiedz

  • +
  • -
Abes Mapper - zdjęcie Abes Mapper 30.12.2010

Tak. Potem skompiluj ponownie
Odpowiedz

  • +
  • -
Abes Mapper - zdjęcie Abes Mapper 30.12.2010

I w pluginie coś jest chyba źle bo jak w amxx.cfg ustawisz cvar na 0 to będzie działał oryginalny plugin
Odpowiedz
Zablokowany