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
CoD Nowy

Crashe apteczka

CoD Nowy

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

#1 Jak się nazwać

    Wszechmogący

  • Power User

Reputacja: 169
Profesjonalista

  • Postów:617
  • Imię:a
  • Lokalizacja:a
Offline

Napisano 05.08.2011 10:13

L 08/05/2011 - 10:27:21: Start of error session.
L 08/05/2011 - 10:27:21: Info (map "cs_assault") (file "addons/amxmodx/logs/error_20110805.log")
L 08/05/2011 - 10:27:21: [ENGINE] Invalid entity 232
L 08/05/2011 - 10:27:21: [AMXX] Run time error 10 (plugin "promedyk.amxx") (native "entity_get_edict") - debug not enabled!
L 08/05/2011 - 10:27:21: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2011 - 10:27:21: [ENGINE] Invalid entity 232
L 08/05/2011 - 10:27:21: [AMXX] Run time error 10 (plugin "elitemedyk.amxx") (native "entity_get_edict") - debug not enabled!
L 08/05/2011 - 10:27:21: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2011 - 10:27:22: [ENGINE] Invalid entity 222
L 08/05/2011 - 10:27:22: [AMXX] Run time error 10 (plugin "elitemedyk.amxx") (native "entity_get_edict") - debug not enabled!
L 08/05/2011 - 10:27:22: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2011 - 10:42:41: [ENGINE] Invalid entity 132
L 08/05/2011 - 10:42:41: [AMXX] Run time error 10 (plugin "promedyk.amxx") (native "entity_get_edict") - debug not enabled!
L 08/05/2011 - 10:42:41: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2011 - 10:42:41: [ENGINE] Invalid entity 132
L 08/05/2011 - 10:42:41: [AMXX] Run time error 10 (plugin "elitemedyk.amxx") (native "entity_get_edict") - debug not enabled!
L 08/05/2011 - 10:42:41: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2011 - 10:42:42: [ENGINE] Invalid entity 135
L 08/05/2011 - 10:42:42: [AMXX] Run time error 10 (plugin "promedyk.amxx") (native "entity_get_edict") - debug not enabled!
L 08/05/2011 - 10:42:42: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2011 - 10:42:42: [ENGINE] Invalid entity 135
L 08/05/2011 - 10:42:42: [AMXX] Run time error 10 (plugin "elitemedyk.amxx") (native "entity_get_edict") - debug not enabled!
L 08/05/2011 - 10:42:42: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2011 - 10:47:18: Start of error session.
L 08/05/2011 - 10:47:18: Info (map "de_dust") (file "addons/amxmodx/logs/error_20110805.log")
L 08/05/2011 - 10:47:18: [ENGINE] Invalid entity 170
L 08/05/2011 - 10:47:18: [AMXX] Run time error 10 (plugin "promedyk.amxx") (native "entity_get_edict") - debug not enabled!
L 08/05/2011 - 10:47:18: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2011 - 10:47:18: [ENGINE] Invalid entity 170
L 08/05/2011 - 10:47:18: [AMXX] Run time error 10 (plugin "elitemedyk.amxx") (native "entity_get_edict") - debug not enabled!
L 08/05/2011 - 10:47:18: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2011 - 10:47:37: [ENGINE] Invalid entity 227
L 08/05/2011 - 10:47:37: [AMXX] Run time error 10 (plugin "promedyk.amxx") (native "entity_get_edict") - debug not enabled!
L 08/05/2011 - 10:47:37: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2011 - 10:47:37: [ENGINE] Invalid entity 227
L 08/05/2011 - 10:47:37: [AMXX] Run time error 10 (plugin "elitemedyk.amxx") (native "entity_get_edict") - debug not enabled!
L 08/05/2011 - 10:47:37: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2011 - 10:48:47: [ENGINE] Invalid entity 150
L 08/05/2011 - 10:48:47: [AMXX] Run time error 10 (plugin "promedyk.amxx") (native "entity_get_edict") - debug not enabled!
L 08/05/2011 - 10:48:47: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2011 - 10:48:47: [ENGINE] Invalid entity 150
L 08/05/2011 - 10:48:47: [AMXX] Run time error 10 (plugin "elitemedyk.amxx") (native "entity_get_edict") - debug not enabled!
L 08/05/2011 - 10:48:47: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2011 - 10:54:00: [ENGINE] Invalid entity 133
L 08/05/2011 - 10:54:00: [AMXX] Run time error 10 (plugin "promedyk.amxx") (native "entity_get_edict") - debug not enabled!
L 08/05/2011 - 10:54:00: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2011 - 10:54:00: [ENGINE] Invalid entity 133
L 08/05/2011 - 10:54:00: [AMXX] Run time error 10 (plugin "elitemedyk.amxx") (native "entity_get_edict") - debug not enabled!
L 08/05/2011 - 10:54:00: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2011 - 10:54:15: [ENGINE] Invalid entity 141
L 08/05/2011 - 10:54:15: [AMXX] Run time error 10 (plugin "promedyk.amxx") (native "entity_get_edict") - debug not enabled!
L 08/05/2011 - 10:54:15: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2011 - 10:54:15: [ENGINE] Invalid entity 141
L 08/05/2011 - 10:54:15: [AMXX] Run time error 10 (plugin "elitemedyk.amxx") (native "entity_get_edict") - debug not enabled!
L 08/05/2011 - 10:54:15: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2011 - 10:55:03: [ENGINE] Invalid entity 131
L 08/05/2011 - 10:55:03: [AMXX] Run time error 10 (plugin "promedyk.amxx") (native "entity_get_edict") - debug not enabled!
L 08/05/2011 - 10:55:03: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2011 - 10:55:03: [ENGINE] Invalid entity 131
L 08/05/2011 - 10:55:03: [AMXX] Run time error 10 (plugin "elitemedyk.amxx") (native "entity_get_edict") - debug not enabled!
L 08/05/2011 - 10:55:03: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2011 - 10:58:04: [ENGINE] Invalid entity 133
L 08/05/2011 - 10:58:04: [AMXX] Run time error 10 (plugin "promedyk.amxx") (native "entity_get_edict") - debug not enabled!
L 08/05/2011 - 10:58:04: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2011 - 10:58:04: [ENGINE] Invalid entity 133
L 08/05/2011 - 10:58:04: [AMXX] Run time error 10 (plugin "elitemedyk.amxx") (native "entity_get_edict") - debug not enabled!
L 08/05/2011 - 10:58:04: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2011 - 11:28:46: Start of error session.
L 08/05/2011 - 11:28:46: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20110805.log")
L 08/05/2011 - 11:28:46: [ENGINE] Invalid entity 135
L 08/05/2011 - 11:28:46: [AMXX] Run time error 10 (plugin "promedyk.amxx") (native "entity_get_edict") - debug not enabled!
L 08/05/2011 - 11:28:46: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2011 - 11:28:46: [ENGINE] Invalid entity 135
L 08/05/2011 - 11:28:46: [AMXX] Run time error 10 (plugin "elitemedyk.amxx") (native "entity_get_edict") - debug not enabled!
L 08/05/2011 - 11:28:46: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2011 - 11:28:47: [ENGINE] Invalid entity 141
L 08/05/2011 - 11:28:47: [AMXX] Run time error 10 (plugin "promedyk.amxx") (native "entity_get_edict") - debug not enabled!
L 08/05/2011 - 11:28:47: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/05/2011 - 11:28:47: [ENGINE] Invalid entity 141
L 08/05/2011 - 11:28:47: [AMXX] Run time error 10 (plugin "elitemedyk.amxx") (native "entity_get_edict") - debug not enabled!
L 08/05/2011 - 11:28:47: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

Dopisałem debug ale i tak pisze zebym dopisał pewnie dlatego że to plugins-cod

Załączone pliki


  • +
  • -
  • 0
Pisze na zamówienie statystyki pod nvault. GG: 15600964

#2 BoB0_

    Wszechpomocny

  • Użytkownik

Reputacja: 38
Życzliwy

  • Postów:365
  • GG:
  • Lokalizacja:Przemyśl
Offline

Napisano 05.08.2011 21:46

To źle dopisujesz to debug, ponieważ u mnie działa to wyśmienicie. Sam miałem podobny problem ale chce zobaczyć czy to jest to samo. Jeśli tak podrzucę Ci rozwiązanie.
  • +
  • -
  • 0

#3 Jak się nazwać

    Wszechmogący

  • Autor tematu
  • Power User

Reputacja: 169
Profesjonalista

  • Postów:617
  • Imię:a
  • Lokalizacja:a
Offline

Napisano 05.08.2011 22:06

napisz mi rozwiązanie ja zobaczę czy zadziała.
  • +
  • -
  • 0
Pisze na zamówienie statystyki pod nvault. GG: 15600964

#4 BoB0_

    Wszechpomocny

  • Użytkownik

Reputacja: 38
Życzliwy

  • Postów:365
  • GG:
  • Lokalizacja:Przemyśl
Offline

Napisano 05.08.2011 22:21

Dodajesz:

#include <fakemeta>

I podmieniasz:

public MedkitThink(ent)
{
	if(pev_valid(ent))
	{
		
		new id = entity_get_edict(ent, EV_ENT_owner);
		new dist = 300;
		new heal = 10+floatround(cod_get_user_intelligence(id)*0.5);


	if (entity_get_edict(ent, EV_ENT_euser2) == 1)
	{		
		new Float:forigin[3];
		entity_get_vector(ent, EV_VEC_origin, forigin);
		
		new entlist[33];
		new numfound = find_sphere_class(0,"player", float(dist),entlist, 32,forigin);
		
		for (new i=0; i < numfound; i++)
		{		
			new pid = entlist[i];
			
			if (get_user_team(pid) != get_user_team(id))
				continue;
			
			new maksymalne_zdrowie = 100+cod_get_user_health(pid);
			new zdrowie = get_user_health(pid);
			new Float:nowe_zdrowie = (zdrowie+heal<maksymalne_zdrowie)?zdrowie+heal+0.0:maksymalne_zdrowie+0.0;
			if (is_user_alive(pid)) entity_set_float(pid, EV_FL_health, nowe_zdrowie);	
		}
		
		entity_set_edict(ent, EV_ENT_euser2, 0);
		entity_set_float(ent, EV_FL_nextthink, halflife_time() + 1.5);
		
		return PLUGIN_CONTINUE;
	}
	
	if (entity_get_float(ent, EV_FL_ltime) < halflife_time() || !is_user_alive(id))
	{
		remove_entity(ent);
		return PLUGIN_CONTINUE;
	}
	
	if (entity_get_float(ent, EV_FL_ltime)-2.0 < halflife_time())
		set_rendering ( ent, kRenderFxNone, 255,255,255, kRenderTransAlpha, 100 );
		
	new Float:forigin[3];
	entity_get_vector(ent, EV_VEC_origin, forigin);
					
	new iOrigin[3];
	for(new i=0;i<3;i++)
		iOrigin[i] = floatround(forigin[i]);
		
	message_begin( MSG_BROADCAST, SVC_TEMPENTITY, iOrigin );
	write_byte( TE_BEAMCYLINDER );
	write_coord( iOrigin[0] );
	write_coord( iOrigin[1] );
	write_coord( iOrigin[2] );
	write_coord( iOrigin[0] );
	write_coord( iOrigin[1] + dist );
	write_coord( iOrigin[2] + dist );
	write_short( sprite_white );
	write_byte( 0 ); // startframe
	write_byte( 0 ); // framerate
	write_byte( 10 ); // life
	write_byte( 10 ); // width
	write_byte( 255 ); // noise
	write_byte( 255 ); // r, g, b
	write_byte( 100 );// r, g, b
	write_byte( 100 ); // r, g, b
	write_byte( 128 ); // brightness
	write_byte( 0 ); // speed
	message_end();
	
	entity_set_edict(ent, EV_ENT_euser2 ,1);
	entity_set_float(ent, EV_FL_nextthink, halflife_time() + 0.5);
	
	    
	return PLUGIN_CONTINUE;
}
}

  • +
  • -
  • 1

#5 Jak się nazwać

    Wszechmogący

  • Autor tematu
  • Power User

Reputacja: 169
Profesjonalista

  • Postów:617
  • Imię:a
  • Lokalizacja:a
Offline

Napisano 06.08.2011 06:52

zaraz przetestuje ale + są fatyge
  • +
  • -
  • 0
Pisze na zamówienie statystyki pod nvault. GG: 15600964

#6 speedkill

    Godlike

  • Przyjaciel

Reputacja: 1 592
Godlike

  • Postów:2 733
  • GG:
  • Steam:steam
  • Imię:Michał
  • Lokalizacja:Prudnik
Offline

Napisano 06.08.2011 07:11

Jeśli to co on podał nie będzie działać to Dodaj debug po nazwie pluginu np.
codmod.amxx debug

Użytkownik speedkill123 edytował ten post 06.08.2011 07:11

  • +
  • -
  • 0

If you can dream it, you can do it.


#7 Jak się nazwać

    Wszechmogący

  • Autor tematu
  • Power User

Reputacja: 169
Profesjonalista

  • Postów:617
  • Imię:a
  • Lokalizacja:a
Offline

Napisano 06.08.2011 08:10

Tu logi po debugu
L 08/06/2011 - 00:07:18: Start of error session.
L 08/06/2011 - 00:07:18: Info (map "de_inferno") (file "addons/amxmodx/logs/error_20110806.log")
L 08/06/2011 - 00:07:18: [ENGINE] Invalid entity 229
L 08/06/2011 - 00:07:19: [AMXX] Displaying debug trace (plugin "elitemedyk.amxx")
L 08/06/2011 - 00:07:19: [AMXX] Run time error 10: native error (native "entity_get_edict")
L 08/06/2011 - 00:07:19: [AMXX]    [0] elitemedyk.sma::MedkitThink (line 98)
L 08/06/2011 - 08:19:01: Start of error session.
L 08/06/2011 - 08:19:01: Info (map "de_dust") (file "addons/amxmodx/logs/error_20110806.log")
L 08/06/2011 - 08:19:01: [MySQL] Thread worker was unable to start.
L 08/06/2011 - 08:19:01: [AMXX] Displaying debug trace (plugin "amxbans_main.amxx")
L 08/06/2011 - 08:19:01: [AMXX] Run time error 10: native error (native "SQL_ThreadQuery")
L 08/06/2011 - 08:19:01: [AMXX]    [0] check_flag.inl::check_flagged (line 36)
L 08/06/2011 - 08:19:01: [AMXX]    [1] check_player.inl::check_player_ (line 100)
L 08/06/2011 - 08:22:36: Start of error session.
L 08/06/2011 - 08:22:36: Info (map "cs_assault_1337") (file "addons/amxmodx/logs/error_20110806.log")
L 08/06/2011 - 08:22:36: [ENGINE] Invalid entity 102
L 08/06/2011 - 08:22:36: [AMXX] Displaying debug trace (plugin "promedyk.amxx")
L 08/06/2011 - 08:22:36: [AMXX] Run time error 10: native error (native "entity_get_edict")
L 08/06/2011 - 08:22:36: [AMXX]    [0] temp125.sma::MedkitThink (line 78)
Oczywiscie usunąłem logi które się powtarzają. Jeszcze nie testowałem wtedy tego co dał kolega BoBo_
  • +
  • -
  • 0
Pisze na zamówienie statystyki pod nvault. GG: 15600964

#8 Aleksiej

    Pomocny

  • Użytkownik

Reputacja: 13
Początkujący

  • Postów:61
  • Imię:Abdul
  • Lokalizacja:
Offline

Napisano 06.08.2011 19:27

Mialem podobny problem, dopisalem na poczatku:

public MedkitThink(ent)


to:

        if(!is_valid_ent(ent))                 
return PLUGIN_HANDLED;


i od tego czasu nie bylo takich errorow. :)

Użytkownik Aleksiej edytował ten post 06.08.2011 19:28

  • +
  • -
  • 2

#9 Jak się nazwać

    Wszechmogący

  • Autor tematu
  • Power User

Reputacja: 169
Profesjonalista

  • Postów:617
  • Imię:a
  • Lokalizacja:a
Offline

Napisano 07.08.2011 00:14

sprawdzę. +
  • +
  • -
  • 0
Pisze na zamówienie statystyki pod nvault. GG: 15600964

#10 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 488
  • Lokalizacja:AMXX.PL
Offline

Napisano 09.08.2011 14:10

Wiadomość wygenerowana automatycznie


Ten temat został zamknięty przez moderatora.

Powód: Rozwiązane

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





Również z jednym lub większą ilością słów kluczowych: CoD Nowy

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

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