←  Problemy z pluginami

AMXX.pl: Support AMX Mod X i SourceMod

»

errory w logach parachute

Zablokowany

Karaj - zdjęcie Karaj 16.08.2011

Witam
Dzisiaj wyskoczyły mi errory w logach. errory wali plugin parachute. Jeśli ktoś umie ten error wyeliminować proszę napisać to będą +
Pozdrawiam

Logi:
L 08/16/2011 - 14:40:21: [AMXX]    [0] parachute.sma::client_PreThink (line 96)
L 08/16/2011 - 14:40:21: [AMXX]    [1] parachute.sma::client_PreThink (line 94)
L 08/16/2011 - 14:40:21: [ENGINE] Invalid entity 133
L 08/16/2011 - 14:40:21: [AMXX] Displaying debug trace (plugin "parachute.amxx")
L 08/16/2011 - 14:40:21: [AMXX] Run time error 10: native error (native "entity_get_int")

Linia (96)
if (entity_get_int(para_ent[id],EV_INT_sequence) != 2)

inia (94)
if (fm_get_user_gravity(id) == 0.1) fm_set_user_gravity(id, 1.0)

Kawałek Kodu:

public client_PreThink(id)
{
	if (!get_pcvar_num(pEnabled)) return
	if (!is_user_alive(id) || !has_parachute[id]) return
 
	new Float:fallspeed = get_pcvar_float(pFallSpeed) * -1.0
	new Float:frame
 
	new button = get_user_button(id)
	new oldbutton = get_user_oldbutton(id)
	new flags = get_entity_flags(id)
 
	if (para_ent[id] > 0 && (flags & FL_ONGROUND))
	{
		if (get_pcvar_num(pDetach))
		{	
			if (fm_get_user_gravity(id) == 0.1) fm_set_user_gravity(id, 1.0)
 
			if (entity_get_int(para_ent[id],EV_INT_sequence) != 2)
			{
				entity_set_int(para_ent[id], EV_INT_sequence, 2)
				entity_set_int(para_ent[id], EV_INT_gaitsequence, 1)
				entity_set_float(para_ent[id], EV_FL_frame, 0.0)
				entity_set_float(para_ent[id], EV_FL_fuser1, 0.0)
				entity_set_float(para_ent[id], EV_FL_animtime, 0.0)
				entity_set_float(para_ent[id], EV_FL_framerate, 0.0)
				return
			}
 
			frame = entity_get_float(para_ent[id],EV_FL_fuser1) + 2.0
			entity_set_float(para_ent[id],EV_FL_fuser1,frame)
			entity_set_float(para_ent[id],EV_FL_frame,frame)
 
			if (frame > 254.0)
			{
				remove_entity(para_ent[id])
				para_ent[id] = 0
			}
		}
		else
		{
			remove_entity(para_ent[id])
			fm_set_user_gravity(id, 1.0)
			para_ent[id] = 0
		}
		return
	}
	if (button & IN_DUCK)
	{
		new Float:velocity[3]
		entity_get_vector(id, EV_VEC_velocity, velocity)
 
		if (velocity[2] < 0.0)
		{	
			if(para_ent[id] <= 0)
			{
				para_ent[id] = create_entity("info_target")
				if(para_ent[id] > 0)
				{
					entity_set_string(para_ent[id],EV_SZ_classname,"parachute")
					entity_set_edict(para_ent[id], EV_ENT_aiment, id)
					entity_set_edict(para_ent[id], EV_ENT_owner, id)
					entity_set_int(para_ent[id], EV_INT_movetype, MOVETYPE_FOLLOW)
					entity_set_model(para_ent[id], "models/parachute.mdl")
					entity_set_int(para_ent[id], EV_INT_sequence, 0)
					entity_set_int(para_ent[id], EV_INT_gaitsequence, 1)
					entity_set_float(para_ent[id], EV_FL_frame, 0.0)
					entity_set_float(para_ent[id], EV_FL_fuser1, 0.0)
				}
			}
			if (para_ent[id] > 0)
			{
				entity_set_int(id, EV_INT_sequence, 3)
				entity_set_int(id, EV_INT_gaitsequence, 1)
				entity_set_float(id, EV_FL_frame, 1.0)
				entity_set_float(id, EV_FL_framerate, 1.0)
				fm_set_user_gravity(id, 0.1)
 
				velocity[2] = (velocity[2] + 40.0 < fallspeed) ? velocity[2] + 40.0 : fallspeed
				entity_set_vector(id, EV_VEC_velocity, velocity)
 
				if (entity_get_int(para_ent[id],EV_INT_sequence) == 0)
				{	
					frame = entity_get_float(para_ent[id],EV_FL_fuser1) + 1.0
					entity_set_float(para_ent[id],EV_FL_fuser1,frame)
					entity_set_float(para_ent[id],EV_FL_frame,frame)
 
					if (frame > 100.0)
					{
						entity_set_float(para_ent[id], EV_FL_animtime, 0.0)
						entity_set_float(para_ent[id], EV_FL_framerate, 0.4)
						entity_set_int(para_ent[id], EV_INT_sequence, 1)
						entity_set_int(para_ent[id], EV_INT_gaitsequence, 1)
						entity_set_float(para_ent[id], EV_FL_frame, 0.0)
						entity_set_float(para_ent[id], EV_FL_fuser1, 0.0)
					}
				}
			}
		}
		else if (para_ent[id] > 0)
		{
			remove_entity(para_ent[id])
			fm_set_user_gravity(id, 1.0)
			para_ent[id] = 0
		}
	}
	else if ((oldbutton & IN_DUCK) && para_ent[id] > 0 )
	{
		remove_entity(para_ent[id])
		fm_set_user_gravity(id, 1.0)
		para_ent[id] = 0
	}
}

Załączone pliki

Odpowiedz

  • +
  • -
speedkill - zdjęcie speedkill 16.08.2011

Sprawdź ten on mi zawsze działał ;]

Załączone pliki

Odpowiedz

Skut3r - zdjęcie Skut3r 16.08.2011

Lap
Zippyshare.com

Załączone pliki


Użytkownik Skut3r edytował ten post 16.08.2011 17:36
Odpowiedz

Karaj - zdjęcie Karaj 16.08.2011

speed, ten spadochron jest dla admina i za kase a ja chce za free dla wszystkich?
Odpowiedz

  • +
  • -
speedkill - zdjęcie speedkill 16.08.2011

Ten jest za free
Odpowiedz

Karaj - zdjęcie Karaj 16.08.2011

speed, ty dałes to tak na odczepce zeby plusa dostac bo ten spadochron jest tylko dla admina!
Odpowiedz

  • +
  • -
Hiroshima - zdjęcie Hiroshima 16.08.2011

Wklejka 131351670412053 - AMXX.pl: Support AMX Mod X usuniety admin_level z posta speeda
Odpowiedz

Karaj - zdjęcie Karaj 16.08.2011

a skompilujesz? bo sa 3 errory;/

Załączone pliki

Odpowiedz

Karaj - zdjęcie Karaj 19.08.2011

wrzucałem już 3 pluginy które daja spadochron i daje errory

L 08/19/2011 - 08:18:25: [AMXX] Run time error 10 (plugin "parachute.amxx") (native "entity_get_int") - debug not enabled!
L 08/19/2011 - 08:18:25: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 08/19/2011 - 08:18:25: [ENGINE] Invalid entity 80
L 08/19/2011 - 08:18:25: [AMXX] Run time error 10 (plugin "parachute.amxx") (native "entity_get_int") - debug not enabled!
L 08/19/2011 - 08:18:25: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
Odpowiedz

  • +
  • -
A może sma? - zdjęcie A może sma? 19.08.2011

:mur:

Idź do szkoły, wróć za 3 tygodnie, przeczytaj ze zrozumieniem to co napisałeś:

L 08/19/2011 - 08:18:25: [AMXX] Run time error 10 (plugin "parachute.amxx") (native "entity_get_int") - debug not enabled!
L 08/19/2011 - 08:18:25: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

I wykonaj to co tam jest napisane...
Użytkownik A może sma? edytował ten post 19.08.2011 20:43
Odpowiedz

Karaj - zdjęcie Karaj 19.08.2011

co ty pier**lisz?
Odpowiedz
Zablokowany