←  Problemy z pluginami

AMXX.pl: Support AMX Mod X i SourceMod

»

[ROZWIĄZANE] Problem z Vipem

Zablokowany

  • +
  • -
QuahodronN - zdjęcie QuahodronN 04.03.2012

Witam więc tak jak w temacie mam problem z vipem - http://wklej.org/hash/e6e8a5d49c5/
crashuje on serwer z takim czyms w konsoli:

L 03/04/2012 - 17:03:41: FATAL ERROR (shutting down): WRITE_SHORT called with no active message

FATAL ERROR (shutting down): WRITE_SHORT called with no active message
Odpowiedz

  • +
  • -
QuahodronN - zdjęcie QuahodronN 05.03.2012

refresh
Odpowiedz

  • +
  • -
QuahodronN - zdjęcie QuahodronN 06.03.2012

pomoże ktoś? potrzebuję tego vipa a crashuje mi on serwer :/
Odpowiedz

  • +
  • -
axelunio - zdjęcie axelunio 06.03.2012

jakby tak bardzo Ci zależało to użyłbyś jakiegoś działającego VIP'a z amxx.pl
Odpowiedz

  • +
  • -
QuahodronN - zdjęcie QuahodronN 06.03.2012

sorry ale przerobiłem vipa od HuberTM (chyba)
i bardzo mi on teraz odpowiada. A na amxx.pl nie ma vipa ktory mi odpowiada!
ja tu proszę o naprawienie a nie porade że mam wziąć innego vipa :facepalm:
Użytkownik QuahodronN edytował ten post 06.03.2012 15:09
Odpowiedz

  • +
  • -
IndeS - zdjęcie IndeS 06.03.2012

Tak przerobiłeś że nie działa, ale wracając do teamatu. jakieś error logi? wycinki z konsoli? jesli crashuje serwer to gdzies na pewno zostawia slady! jestes pewien że to ten plugin?
Odpowiedz

  • +
  • -
QuahodronN - zdjęcie QuahodronN 06.03.2012

przerobilem i w kompilatorze jest 0 errorów i tak jest to ten plugin bo sprawdzałem

a jeśli o logi to, to co to jest?

L 03/04/2012 - 17:03:41: FATAL ERROR (shutting down): WRITE_SHORT called with no active message

FATAL ERROR (shutting down): WRITE_SHORT called with no active message


(w 1 poscie tez jest)
Odpowiedz

  • +
  • -
speedkill - zdjęcie speedkill 06.03.2012

Znajdź
 //message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, nKiller)
zamień na :
message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, nKiller)
Dlatego masz crashe.
Odpowiedz

  • +
  • -
QuahodronN - zdjęcie QuahodronN 06.03.2012

przetestuję :) ale coś mi się zdaje że masz racje + w razie problemów napisze tutaj
Odpowiedz

  • +
  • -
QuahodronN - zdjęcie QuahodronN 06.03.2012

przykro mi bardzo ale teraz to w ogole nie dziala :/
0 error logów a w konsoli po wpisaniu amx_plugins wpisze unkown :(
Odpowiedz

  • +
  • -
QuahodronN - zdjęcie QuahodronN 08.03.2012

odswieżam
Odpowiedz

  • +
  • -
QuahodronN - zdjęcie QuahodronN 11.03.2012

jakieś pomysły?
Odpowiedz

  • +
  • -
speedkill - zdjęcie speedkill 11.03.2012

Testuj kolego ;)
Na start : 120
max : 130
Hs : 15
Normalny : 10
Wywaliłem te wszystkie nie potrzebne define + wywaliłem 2 zbędne include ( fun + cstrike )
#include <amxmodx>
#include <amxmisc>
#include <fakemeta_util>
#include <hamsandwich>
#include <colorchat>

#define FLAGA ADMIN_LEVEL_H

new maxplayers

public plugin_init()
{
	
	register_plugin("VIPek", "1.0", "edit by Qua");
	register_event("DeathMsg", "death", "a", "1>0")
	
	register_clcmd("say /infovip", "motd");
	register_clcmd("say /vipinfo", "motd");
	maxplayers = get_maxplayers()
	
	register_clcmd("say /vips", "print_vips", 0);
	register_clcmd("say /vipy", "print_vips", 0);
	
	RegisterHam(Ham_Spawn, "player", "respawn", 1);
	set_task(180.0, "reklama",_,_,_,"b");
}
public respawn(id)
{
	if(is_user_alive(id) && get_user_flags(id) & FLAGA)
	{
		fm_give_item(id, "weapon_deagle");
		fm_give_item(id, "ammo_50ae");
		fm_give_item(id, "ammo_50ae");
		fm_give_item(id, "ammo_50ae");  
		fm_give_item(id, "ammo_50ae");   
		fm_give_item(id, "weapon_hegrenade");
		fm_give_item(id, "weapon_flashbang");
		fm_give_item(id, "weapon_flashbang");
		fm_give_item(id, "weapon_smokegrenade");
		fm_give_item(id, "item_assaultsuit")
		if (get_user_team(id)==2)
		{
			fm_give_item(id,"item_thighpack")
		}
		fm_set_user_health(id, 120);
	}
}

public motd(id) 
{
	show_motd(id,"vip.txt","Informacje VIP.");
}
public print_vips(user) 
{
	new adminnames[33][32]
	new message[256]
	new id, count, x, len
	
	for(id = 1 ; id <= maxplayers ; id++)
		if(is_user_connected(id))
		if(get_user_flags(id) & FLAGA)
		get_user_name(id, adminnames[count++], 31)
	
	len = format(message, 255, "^x04 VIPY ONLINE: ")
	if(count > 0) {
		for(x = 0 ; x < count ; x++) {
			len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count-1) ? ", ":"")
			if(len > 96 ) {
				ColorChat(user, GREEN, "%s", message);
				len = format(message, 255, "^x04 ")
			}
		}
		ColorChat(user, GREEN, "%s", message);
	}
	else {
		len += format(message[len], 255-len, "Brak Vipow ONLINE")
		
		ColorChat(user, GREEN, "%s", message);
	}
	
	
}
public reklama()
{
	for(new id=1;id<33;id++)
	{
		new name[33]
		get_user_name(id,name,32)
		ColorChat(id, RED, "Wita %s, chcesz zobaczysz co dostaje vip ? Wpisz /vipinfo")
	}
}
public death()
{
	new Killer = read_data(1)
	new Victim = read_data(2)
	new Hs = read_data(3)
	if(get_user_flags(Killer) & FLAGA)
	{
		if(Killer != Victim && get_user_health(Killer) < 130)
		{
			set_hudmessage(0, 170, 255, 0.1, 0.65, 0, 1.0, 1.0, 0.1, 0.1, -1)
			if(Hs)
			{
				fm_set_user_health(Killer,get_user_health(Killer) + 15)
				show_hudmessage(Killer, "Dostales 15 HP")
			}
			else
			{
				fm_set_user_health(Killer,get_user_health(Killer) + 10)
				show_hudmessage(Killer, "Dostales 10 HP")
			}
			message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, Killer);
			write_short(5<<10);
			write_short(3<<5);
			write_short(1<<1);
			write_byte(255);
			write_byte(0);
			write_byte(0);
			write_byte(90);
			message_end();
		}
	}
	return PLUGIN_HANDLED
}

Użytkownik speedkill edytował ten post 11.03.2012 08:56
Odpowiedz

  • +
  • -
QuahodronN - zdjęcie QuahodronN 11.03.2012

gdy to message_begin(MSG_ONE, get_user_msgid("ScreenFade"),{0,0,0},Killer);

zrobie tak:
// message_begin(MSG_ONE, get_user_msgid("ScreenFade"),{0,0,0},Killer);
to będzie działac i tylko pokazwać "dostałes +10/15hp" czy sie sypnie?

aha i gdy zrobie ze na start ma 100hp oraz maks hp to 100 to normalnie bedzie smigac?
Użytkownik QuahodronN edytował ten post 11.03.2012 11:31
Odpowiedz

  • +
  • -
speedkill - zdjęcie speedkill 11.03.2012

nie rób tak
message_begin(MSG_ONE, get_user_msgid("ScreenFade"),{0,0,0},Killer);
Tylko całą tą funkcję
                        /*message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, Killer);
                        write_short(5<<10);
                        write_short(3<<5);
                        write_short(1<<1);
                        write_byte(255);
                        write_byte(0);
                        write_byte(0);
                        write_byte(90);
                        message_end();*/
Dlatego miałeś crashe :D
Odpowiedz

  • +
  • -
QuahodronN - zdjęcie QuahodronN 11.03.2012

a co do tego?
aha i gdy zrobie ze na start ma 100hp oraz maks hp to 100 to normalnie bedzie smigac?
Odpowiedz

  • +
  • -
speedkill - zdjęcie speedkill 11.03.2012

a co do tego?
aha i gdy zrobie ze na start ma 100hp oraz maks hp to 100 to normalnie bedzie smigac?

Tak :)
Użytkownik speedkill edytował ten post 11.03.2012 11:45
Odpowiedz

  • +
  • -
QuahodronN - zdjęcie QuahodronN 11.03.2012

mam nadzieję, że będzie działać ale jestem dobrych myśli

bardzo dziękuję speedkill za pomoc

temat do zamknięcia :)
Odpowiedz

  • +
  • -
Hiroshima - zdjęcie Hiroshima 11.03.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