Discord sunucumuz açılmıştır, hepinizi bekleriz

https://discord.gg/43gGDQe6tS

Eklenti hata logu [debug]

Eklenti sorunlarınız ve özel eklenti istekleriniz

Moderatör: Moderatörler


Konu Sahibi
taykor19
Yasaklı Üye
Yasaklı Üye
Mesajlar: 255
Kayıt: Pzr Eyl 04, 2016 6:45 pm

Yardımcı olurmusunuz?

Mesaj gönderen taykor19 »

ShooTeR yazdı: Çrş Şub 07, 2018 11:10 pm Verdigi hatayı gönderin.
333.sma(76) : error 017: undefined symbol "id"

1 Error.
Compile failed!

Link:
Linklerini gizle
Linki Kopyala
Kullanıcı avatarı

ShooTeR
Mesajlar: 4496
Kayıt: Çrş Ağu 16, 2017 10:35 pm
Server Ip/DNS: CSXX.CSDURAGI.COM
Clan İsmi: NoMercy

Yardımcı olurmusunuz?

Mesaj gönderen ShooTeR »

Kod: Tümünü seç

#include <amxmodx>
#include <csdm>
#include <cstrike>
#include <fakemeta>

new const g_weapons[] =
{
	CSW_P228,
	CSW_SCOUT,
	CSW_XM1014,
	CSW_MAC10,
	CSW_AUG,
	CSW_ELITE,
	CSW_FIVESEVEN,
	CSW_UMP45,
	CSW_SG550,
	CSW_GALI,
	CSW_GALIL,
	CSW_FAMAS,
	CSW_USP,
	CSW_GLOCK18,
	CSW_AWP,
	CSW_MP5NAVY,
	CSW_M249,
	CSW_M3,
	CSW_M4A1,
	CSW_TMP,
	CSW_G3SG1,
	CSW_DEAGLE,
	CSW_SG552,
	CSW_AK47,
	CSW_P90
}

new const g_max_clip[] =
{
	13,
	10,
	7,
	30,
	30,
	30,
	20,
	25,
	30,
	35,
	35,
	25,
	12,
	20,
	10,
	30,
	100,
	8,
	30,
	30,
	20,
	7,
	30,
	30,
	50
}

new const g_other_weapons[] =
{
	CSW_KNIFE,
	CSW_HEGRENADE,
	CSW_C4
}

public plugin_init()
	register_plugin("CSDM Refill", "1.0", "Radiance")

public client_death(id, killer, victim, wpnindex, hitplace, TK)
{
	if (!csdm_get_ffa() && TK && is_user_connected(id))
		return

	for (new a = 0; a < sizeof (g_other_weapons); a++)
		if (wpnindex == g_other_weapons[a])
			return

	new weapon = fm_get_weapon_ent(killer, wpnindex)

	for (new a = 0; a < sizeof (g_weapons); a++)
		if (wpnindex == g_weapons[a])
		{
			new ammo = get_weapon_maxclip(wpnindex)

			if (ammo)
			{
				client_cmd(killer, "spk ^"items/9mmclip1.wav^"")
				cs_set_weapon_ammo(weapon, ammo)
			}
			return

		}
}

get_weapon_maxclip(wpnid = 0)
{
	for (new a = 0; a < sizeof (g_weapons); a++)
		if (wpnid == g_weapons[a])
			return g_max_clip[a]

	return false
}

fm_get_weapon_ent(id, wpnid = 0)
{
	new name[32]

	if(wpnid)
		get_weaponname(wpnid, name, 31)

	if (!equal(name, "weapon_", 7))
		format(name, sizeof (name) - 1, "weapon_%s", name)

	return fm_find_ent_by_owner(get_maxplayers(), name, id)
}

fm_find_ent_by_owner(id, const classname[], owner, jghgtype = 0)
{
	new strtype[16] = "classname"
	new ent = id

	switch (jghgtype)
	{
		case 1: strtype = "target"
		case 2: strtype = "targetname"
	}

	while ((ent = engfunc(EngFunc_FindEntityByString, ent, strtype, classname)) && pev(ent, pev_owner) != owner)
	{
	}

	return ent
}
dene

Link:
Linklerini gizle
Linki Kopyala

Konu Sahibi
taykor19
Yasaklı Üye
Yasaklı Üye
Mesajlar: 255
Kayıt: Pzr Eyl 04, 2016 6:45 pm

Yardımcı olurmusunuz?

Mesaj gönderen taykor19 »

ShooTeR yazdı: Çrş Şub 07, 2018 11:16 pm

Kod: Tümünü seç

#include <amxmodx>
#include <csdm>
#include <cstrike>
#include <fakemeta>

new const g_weapons[] =
{
	CSW_P228,
	CSW_SCOUT,
	CSW_XM1014,
	CSW_MAC10,
	CSW_AUG,
	CSW_ELITE,
	CSW_FIVESEVEN,
	CSW_UMP45,
	CSW_SG550,
	CSW_GALI,
	CSW_GALIL,
	CSW_FAMAS,
	CSW_USP,
	CSW_GLOCK18,
	CSW_AWP,
	CSW_MP5NAVY,
	CSW_M249,
	CSW_M3,
	CSW_M4A1,
	CSW_TMP,
	CSW_G3SG1,
	CSW_DEAGLE,
	CSW_SG552,
	CSW_AK47,
	CSW_P90
}

new const g_max_clip[] =
{
	13,
	10,
	7,
	30,
	30,
	30,
	20,
	25,
	30,
	35,
	35,
	25,
	12,
	20,
	10,
	30,
	100,
	8,
	30,
	30,
	20,
	7,
	30,
	30,
	50
}

new const g_other_weapons[] =
{
	CSW_KNIFE,
	CSW_HEGRENADE,
	CSW_C4
}

public plugin_init()
	register_plugin("CSDM Refill", "1.0", "Radiance")

public client_death(id, killer, victim, wpnindex, hitplace, TK)
{
	if (!csdm_get_ffa() && TK && is_user_connected(id))
		return

	for (new a = 0; a < sizeof (g_other_weapons); a++)
		if (wpnindex == g_other_weapons[a])
			return

	new weapon = fm_get_weapon_ent(killer, wpnindex)

	for (new a = 0; a < sizeof (g_weapons); a++)
		if (wpnindex == g_weapons[a])
		{
			new ammo = get_weapon_maxclip(wpnindex)

			if (ammo)
			{
				client_cmd(killer, "spk ^"items/9mmclip1.wav^"")
				cs_set_weapon_ammo(weapon, ammo)
			}
			return

		}
}

get_weapon_maxclip(wpnid = 0)
{
	for (new a = 0; a < sizeof (g_weapons); a++)
		if (wpnid == g_weapons[a])
			return g_max_clip[a]

	return false
}

fm_get_weapon_ent(id, wpnid = 0)
{
	new name[32]

	if(wpnid)
		get_weaponname(wpnid, name, 31)

	if (!equal(name, "weapon_", 7))
		format(name, sizeof (name) - 1, "weapon_%s", name)

	return fm_find_ent_by_owner(get_maxplayers(), name, id)
}

fm_find_ent_by_owner(id, const classname[], owner, jghgtype = 0)
{
	new strtype[16] = "classname"
	new ent = id

	switch (jghgtype)
	{
		case 1: strtype = "target"
		case 2: strtype = "targetname"
	}

	while ((ent = engfunc(EngFunc_FindEntityByString, ent, strtype, classname)) && pev(ent, pev_owner) != owner)
	{
	}

	return ent
}
dene
Yükledim deniyorum hata verirse yazacağım teşekkürler.

Link:
Linklerini gizle
Linki Kopyala

Konu Sahibi
taykor19
Yasaklı Üye
Yasaklı Üye
Mesajlar: 255
Kayıt: Pzr Eyl 04, 2016 6:45 pm

Yardımcı olurmusunuz?

Mesaj gönderen taykor19 »

ShooTeR yazdı: Çrş Şub 07, 2018 11:16 pm

Kod: Tümünü seç

#include <amxmodx>
#include <csdm>
#include <cstrike>
#include <fakemeta>

new const g_weapons[] =
{
	CSW_P228,
	CSW_SCOUT,
	CSW_XM1014,
	CSW_MAC10,
	CSW_AUG,
	CSW_ELITE,
	CSW_FIVESEVEN,
	CSW_UMP45,
	CSW_SG550,
	CSW_GALI,
	CSW_GALIL,
	CSW_FAMAS,
	CSW_USP,
	CSW_GLOCK18,
	CSW_AWP,
	CSW_MP5NAVY,
	CSW_M249,
	CSW_M3,
	CSW_M4A1,
	CSW_TMP,
	CSW_G3SG1,
	CSW_DEAGLE,
	CSW_SG552,
	CSW_AK47,
	CSW_P90
}

new const g_max_clip[] =
{
	13,
	10,
	7,
	30,
	30,
	30,
	20,
	25,
	30,
	35,
	35,
	25,
	12,
	20,
	10,
	30,
	100,
	8,
	30,
	30,
	20,
	7,
	30,
	30,
	50
}

new const g_other_weapons[] =
{
	CSW_KNIFE,
	CSW_HEGRENADE,
	CSW_C4
}

public plugin_init()
	register_plugin("CSDM Refill", "1.0", "Radiance")

public client_death(id, killer, victim, wpnindex, hitplace, TK)
{
	if (!csdm_get_ffa() && TK && is_user_connected(id))
		return

	for (new a = 0; a < sizeof (g_other_weapons); a++)
		if (wpnindex == g_other_weapons[a])
			return

	new weapon = fm_get_weapon_ent(killer, wpnindex)

	for (new a = 0; a < sizeof (g_weapons); a++)
		if (wpnindex == g_weapons[a])
		{
			new ammo = get_weapon_maxclip(wpnindex)

			if (ammo)
			{
				client_cmd(killer, "spk ^"items/9mmclip1.wav^"")
				cs_set_weapon_ammo(weapon, ammo)
			}
			return

		}
}

get_weapon_maxclip(wpnid = 0)
{
	for (new a = 0; a < sizeof (g_weapons); a++)
		if (wpnid == g_weapons[a])
			return g_max_clip[a]

	return false
}

fm_get_weapon_ent(id, wpnid = 0)
{
	new name[32]

	if(wpnid)
		get_weaponname(wpnid, name, 31)

	if (!equal(name, "weapon_", 7))
		format(name, sizeof (name) - 1, "weapon_%s", name)

	return fm_find_ent_by_owner(get_maxplayers(), name, id)
}

fm_find_ent_by_owner(id, const classname[], owner, jghgtype = 0)
{
	new strtype[16] = "classname"
	new ent = id

	switch (jghgtype)
	{
		case 1: strtype = "target"
		case 2: strtype = "targetname"
	}

	while ((ent = engfunc(EngFunc_FindEntityByString, ent, strtype, classname)) && pev(ent, pev_owner) != owner)
	{
	}

	return ent
}
dene
L 02/07/2018 - 23:49:14: [CSTRIKE] Non-player entity 0 out of range
L 02/07/2018 - 23:49:14: [AMXX] Run time error 10 (plugin "Niva_Ammo.amxx") (native "cs_set_weapon_ammo") - debug not enabled!
L 02/07/2018 - 23:49:14: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

Gene hata verdi?

Link:
Linklerini gizle
Linki Kopyala
Kullanıcı avatarı

Poseidon*
Yasaklı Üye
Yasaklı Üye
Mesajlar: 2191
Kayıt: Pzr May 28, 2017 6:08 pm
Konum: İzmir

Yardımcı olurmusunuz?

Mesaj gönderen Poseidon* »

Ne plugini bu?

Link:
Linklerini gizle
Linki Kopyala

PaZee
Mesajlar: 1762
Kayıt: Çrş Şub 22, 2017 11:28 pm
Konum: Istanbul
Server Ip/DNS: Cs.teknoklan.com
Clan İsmi: TeknoKlan
İletişim:

Yardımcı olurmusunuz?

Mesaj gönderen PaZee »

Olmayan bir varligi işleme sokuyor sanirim

Kod: Tümünü seç

#include <amxmodx>
#include <csdm>
#include <cstrike>
#include <fakemeta>


#define is_valid_player(%1) (1 <= %1 <= 32)


new const g_weapons[] =
{
	CSW_P228,
	CSW_SCOUT,
	CSW_XM1014,
	CSW_MAC10,
	CSW_AUG,
	CSW_ELITE,
	CSW_FIVESEVEN,
	CSW_UMP45,
	CSW_SG550,
	CSW_GALI,
	CSW_GALIL,
	CSW_FAMAS,
	CSW_USP,
	CSW_GLOCK18,
	CSW_AWP,
	CSW_MP5NAVY,
	CSW_M249,
	CSW_M3,
	CSW_M4A1,
	CSW_TMP,
	CSW_G3SG1,
	CSW_DEAGLE,
	CSW_SG552,
	CSW_AK47,
	CSW_P90
}

new const g_max_clip[] =
{
	13,
	10,
	7,
	30,
	30,
	30,
	20,
	25,
	30,
	35,
	35,
	25,
	12,
	20,
	10,
	30,
	100,
	8,
	30,
	30,
	20,
	7,
	30,
	30,
	50
}

new const g_other_weapons[] =
{
	CSW_KNIFE,
	CSW_HEGRENADE,
	CSW_C4
}

public plugin_init()
	register_plugin("CSDM Refill", "1.0", "Radiance")

public client_death(killer, victim, wpnindex, hitplace, TK)
{
	if (!csdm_get_ffa() && TK)
		return

	for (new a = 0; a < sizeof (g_other_weapons); a++)
		if (wpnindex == g_other_weapons[a])
			return

	new weapon = fm_get_weapon_ent(killer, wpnindex)
	
	new clasadi[24]
	
	for (new a = 0; a < sizeof (g_weapons); a++)
		if (wpnindex == g_weapons[a])
		{
			new ammo = get_weapon_maxclip(wpnindex)

			if (ammo)
			{
				if(is_valid_player(killer))
				{
					client_cmd(killer, "spk ^"items/9mmclip1.wav^"")
				}
				
				
				if(pev_valid(weapon))
				{
					pev(weapon,pev_classname,clasadi)
					if (containi(clasadi, "weapon_"))
					{
						cs_set_weapon_ammo(weapon, ammo)
					}
				}
				
			}
			return

		}
}

get_weapon_maxclip(wpnid = 0)
{
	for (new a = 0; a < sizeof (g_weapons); a++)
		if (wpnid == g_weapons[a])
			return g_max_clip[a]

	return false
}

fm_get_weapon_ent(id, wpnid = 0)
{
	new name[32]

	if(wpnid)
		get_weaponname(wpnid, name, 31)

	if (!equal(name, "weapon_", 7))
		format(name, sizeof (name) - 1, "weapon_%s", name)

	return fm_find_ent_by_owner(get_maxplayers(), name, id)
}

fm_find_ent_by_owner(id, const classname[], owner, jghgtype = 0)
{
	new strtype[16] = "classname"
	new ent = id

	switch (jghgtype)
	{
		case 1: strtype = "target"
		case 2: strtype = "targetname"
	}

	while ((ent = engfunc(EngFunc_FindEntityByString, ent, strtype, classname)) && pev(ent, pev_owner) != owner)
	{
	}

	return ent
}

Link:
Linklerini gizle
Linki Kopyala

Konu Sahibi
taykor19
Yasaklı Üye
Yasaklı Üye
Mesajlar: 255
Kayıt: Pzr Eyl 04, 2016 6:45 pm

Yardımcı olurmusunuz?

Mesaj gönderen taykor19 »

PaZee yazdı: Prş Şub 08, 2018 3:20 pm Olmayan bir varligi işleme sokuyor sanirim

Kod: Tümünü seç

#include <amxmodx>
#include <csdm>
#include <cstrike>
#include <fakemeta>


#define is_valid_player(%1) (1 <= %1 <= 32)


new const g_weapons[] =
{
	CSW_P228,
	CSW_SCOUT,
	CSW_XM1014,
	CSW_MAC10,
	CSW_AUG,
	CSW_ELITE,
	CSW_FIVESEVEN,
	CSW_UMP45,
	CSW_SG550,
	CSW_GALI,
	CSW_GALIL,
	CSW_FAMAS,
	CSW_USP,
	CSW_GLOCK18,
	CSW_AWP,
	CSW_MP5NAVY,
	CSW_M249,
	CSW_M3,
	CSW_M4A1,
	CSW_TMP,
	CSW_G3SG1,
	CSW_DEAGLE,
	CSW_SG552,
	CSW_AK47,
	CSW_P90
}

new const g_max_clip[] =
{
	13,
	10,
	7,
	30,
	30,
	30,
	20,
	25,
	30,
	35,
	35,
	25,
	12,
	20,
	10,
	30,
	100,
	8,
	30,
	30,
	20,
	7,
	30,
	30,
	50
}

new const g_other_weapons[] =
{
	CSW_KNIFE,
	CSW_HEGRENADE,
	CSW_C4
}

public plugin_init()
	register_plugin("CSDM Refill", "1.0", "Radiance")

public client_death(killer, victim, wpnindex, hitplace, TK)
{
	if (!csdm_get_ffa() && TK)
		return

	for (new a = 0; a < sizeof (g_other_weapons); a++)
		if (wpnindex == g_other_weapons[a])
			return

	new weapon = fm_get_weapon_ent(killer, wpnindex)
	
	new clasadi[24]
	
	for (new a = 0; a < sizeof (g_weapons); a++)
		if (wpnindex == g_weapons[a])
		{
			new ammo = get_weapon_maxclip(wpnindex)

			if (ammo)
			{
				if(is_valid_player(killer))
				{
					client_cmd(killer, "spk ^"items/9mmclip1.wav^"")
				}
				
				
				if(pev_valid(weapon))
				{
					pev(weapon,pev_classname,clasadi)
					if (containi(clasadi, "weapon_"))
					{
						cs_set_weapon_ammo(weapon, ammo)
					}
				}
				
			}
			return

		}
}

get_weapon_maxclip(wpnid = 0)
{
	for (new a = 0; a < sizeof (g_weapons); a++)
		if (wpnid == g_weapons[a])
			return g_max_clip[a]

	return false
}

fm_get_weapon_ent(id, wpnid = 0)
{
	new name[32]

	if(wpnid)
		get_weaponname(wpnid, name, 31)

	if (!equal(name, "weapon_", 7))
		format(name, sizeof (name) - 1, "weapon_%s", name)

	return fm_find_ent_by_owner(get_maxplayers(), name, id)
}

fm_find_ent_by_owner(id, const classname[], owner, jghgtype = 0)
{
	new strtype[16] = "classname"
	new ent = id

	switch (jghgtype)
	{
		case 1: strtype = "target"
		case 2: strtype = "targetname"
	}

	while ((ent = engfunc(EngFunc_FindEntityByString, ent, strtype, classname)) && pev(ent, pev_owner) != owner)
	{
	}

	return ent
}
L 02/08/2018 - 21:59:46: [FAKEMETA] Invalid return type
L 02/08/2018 - 21:59:46: [AMXX] Run time error 10 (plugin "333.amxx") (native "pev") - debug not enabled!
L 02/08/2018 - 21:59:46: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

Şimdide bu hatayı veriyor kardeşim yardımcı olurmusun?

Link:
Linklerini gizle
Linki Kopyala
Kullanıcı avatarı

Taha Demirbaş
Mesajlar: 10428
Kayıt: Cum Tem 08, 2016 10:05 pm
Konum: Türkiye
İletişim:

Yardımcı olurmusunuz?

Mesaj gönderen Taha Demirbaş »

entity de sorun var sanırsam. @PaZee

Link:
Linklerini gizle
Linki Kopyala
Kullanıcı avatarı

Yek'-ta
Mesajlar: 9626
Kayıt: Cmt Eyl 12, 2015 12:40 pm
İletişim:

Yardımcı olurmusunuz?

Mesaj gönderen Yek'-ta »

Çok uğraştınız. Ekteki eklentiyi denemedim, eklenti çalışıyor çalışmıyor yazarsınız.
Bu mesaja eklenen dosyaları görüntülemek için gerekli izinlere sahip değilsiniz.

Link:
Linklerini gizle
Linki Kopyala

PaZee
Mesajlar: 1762
Kayıt: Çrş Şub 22, 2017 11:28 pm
Konum: Istanbul
Server Ip/DNS: Cs.teknoklan.com
Clan İsmi: TeknoKlan
İletişim:

Yardımcı olurmusunuz?

Mesaj gönderen PaZee »

Kod: Tümünü seç

/* Yek'-ta */

#include <amxmodx>
#include <reapi>
#include <csdm>

public plugin_init()
{
    register_plugin("CSDM Refill Alternatif", "1.0", "Yek'-ta")

    RegisterHookChain(RG_CBasePlayer_Killed, "CBasePlayer_Killed", true);
}

public CBasePlayer_Killed(Victim, pevAttacker){
	if(get_member(Victim, m_iTeam) == get_member(pevAttacker, m_iTeam) && !csdm_get_ffa())
		return;

	client_cmd(pevAttacker, "spk ^"items/9mmclip1.wav^"")
	if(get_user_weapon(pevAttacker) != CSW_KNIFE && get_user_weapon(pevAttacker) != CSW_FLASHBANG || get_user_weapon(pevAttacker) != CSW_HEGRENADE || get_user_weapon(pevAttacker) != CSW_SMOKEGRENADE)
	{
		rg_instant_reload_weapons(pevAttacker,get_user_weapon(pevAttacker));
	}
}

Link:
Linklerini gizle
Linki Kopyala
Cevapla