1. sayfa (Toplam 1 sayfa)

Duvara Tırmanma Neden Log Atıyor ?

Gönderilme zamanı: Cum Ara 01, 2017 7:57 pm
gönderen ByBuLuT ☪
EKLENTI

Kod: Tümünü seç

#include <amxmodx>
#include <fakemeta>
#include <fakemeta_util>
#include <hamsandwich>
#include <zombieplague>

new bool:g_WallClimb[33]
new Float:g_wallorigin[32][3]
new g_maxplayers, item_climb

public plugin_init() 
{
	register_plugin("[ZP] Extra Item: Wall climb ", "1.0", "Python1320 & Accelerator")
	register_forward(FM_Touch, "fwd_touch")
	register_forward(FM_PlayerPreThink, "fwd_playerprethink")
	RegisterHam(Ham_Killed, "player", "fw_PlayerKilled")
	
	g_maxplayers = get_maxplayers()
	
	item_climb = zp_register_extra_item("DuvaraTirmanma [E]", 3000, ZP_TEAM_ZOMBIE)
}

public zp_extra_item_selected(player, itemid)
{
	if (itemid == item_climb) 
	{
		g_WallClimb[player] = true
		client_printc(player, "!t[!gHG!n|!gZP!t] !nRoundluk Duvara Tirmanma Ozelligin Aktif.! !g[E TUSU].!");
	}
}

public zp_user_infected_post(id, infector)
	g_WallClimb[id] = false

public zp_user_humanized_post(id, survivor)
	g_WallClimb[id] = false

public fw_PlayerKilled(victim, attacker, shouldgib)
	g_WallClimb[victim] = false

public zp_round_ended(winteam)
{
	for (new id=1; id<=g_maxplayers; id++)
		g_WallClimb[id] = false
}

public client_connect(id)
	g_WallClimb[id] = false

public fwd_touch(id, world)
{
	if(!is_user_alive(id) || !g_WallClimb[id])
		return FMRES_IGNORED
		
	pev(id, pev_origin, g_wallorigin[id])

	return FMRES_IGNORED
}

public wallclimb(id, button)
{
	static Float:origin[3]
	pev(id, pev_origin, origin)

	if(get_distance_f(origin, g_wallorigin[id]) > 25.0)
		return FMRES_IGNORED  // if not near wall
	
	if(fm_get_entity_flags(id) & FL_ONGROUND)
		return FMRES_IGNORED
		
	if(button & IN_FORWARD)
	{
		static Float:velocity[3]
		velocity_by_aim(id, 120, velocity)
		fm_set_user_velocity(id, velocity)
	}
	else if(button & IN_BACK)
	{
		static Float:velocity[3]
		velocity_by_aim(id, -120, velocity)
		fm_set_user_velocity(id, velocity)
	}
	return FMRES_IGNORED
}	

public fwd_playerprethink(id) 
{
	if(!g_WallClimb[id]) 
		return FMRES_IGNORED
	
	new button = fm_get_user_button(id)
	
	if(button & IN_USE) //Use button = climb
		wallclimb(id, button)

	return FMRES_IGNORED
}

public belestirmanma(id)
{
	g_WallClimb[id] = true
	client_print(id, print_center, "Duvara Tirmanma Ozelligin Aktif.!")
}

public plugin_natives()
{
	register_native("tirmanmaac", "belestirmanma", 1)
}

// Colour Chat
stock client_printc(const id, const input[], any:...)
{
	new count = 1, players[32];
	static msg[191];
	vformat(msg, 190, input, 3);
	
	replace_all(msg, 190, "!g", "^x04"); // Green Color
	replace_all(msg, 190, "!n", "^x01"); // Default Color
	replace_all(msg, 190, "!t", "^x03"); // Team Color
	
	if (id) players[0] = id; else get_players(players, count, "ch");

	for (new i = 0; i < count; i++)
	{
		if (is_user_connected(players[i]))
		{
			message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
			write_byte(players[i]);
			write_string(msg);
			message_end();
		}
	}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1254\\ deff0\\ deflang1055{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/
55.SATIR PUBLICI

Kod: Tümünü seç

public fwd_touch(id, world)
{
	if(!is_user_alive(id) || !g_WallClimb[id])
		return FMRES_IGNORED
		
	pev(id, pev_origin, g_wallorigin[id])

	return FMRES_IGNORED
}
VERDIGI LOG DEBUGLU

Kod: Tümünü seç

L 12/01/2017 - 19:42:59: [AMXX] Displaying debug trace (plugin "zp_extra_wallclimb_v1.3.amxx", version "1.0")
L 12/01/2017 - 19:42:59: [AMXX] Run time error 4: index out of bounds 
L 12/01/2017 - 19:42:59: [AMXX]    [0] zp_extra_wallclimb_v1.3.sma::fwd_touch (line 55)
L 12/01/2017 - 19:43:03: [AMXX] Run time error 4 (plugin "csd_guard.amxx") - debug not enabled!
L 12/01/2017 - 19:43:03: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 12/01/2017 - 19:43:57: [AMXX] Displaying debug trace (plugin "zp_extra_wallclimb_v1.3.amxx", version "1.0")
L 12/01/2017 - 19:43:57: [AMXX] Run time error 4: index out of bounds 
L 12/01/2017 - 19:43:57: [AMXX]    [0] zp_extra_wallclimb_v1.3.sma::fwd_touch (line 55)
L 12/01/2017 - 19:43:59: [AMXX] Displaying debug trace (plugin "zp_extra_wallclimb_v1.3.amxx", version "1.0")
L 12/01/2017 - 19:43:59: [AMXX] Run time error 4: index out of bounds 
L 12/01/2017 - 19:43:59: [AMXX]    [0] zp_extra_wallclimb_v1.3.sma::fwd_touch (line 55)
L 12/01/2017 - 19:43:59: [AMXX] Displaying debug trace (plugin "zp_extra_wallclimb_v1.3.amxx", version "1.0")
L 12/01/2017 - 19:43:59: [AMXX] Run time error 4: index out of bounds 
@PaZee @Taha Demirbaş @YeKTaBEYy @Yek'-ta @emirakpinar

Yardımcı olurmusunuz. 55'de neden log atıyor.?

Duvara Tırmanma Neden Log Atıyor ?

Gönderilme zamanı: Cum Ara 01, 2017 8:00 pm
gönderen PaZee
satir 8 i

Kod: Tümünü seç

new Float:g_wallorigin[33][3]

32 yi bir 33 yap ordan degildirde bi dene

Duvara Tırmanma Neden Log Atıyor ?

Gönderilme zamanı: Cum Ara 01, 2017 8:42 pm
gönderen ByBuLuT ☪
PaZee yazdı:satir 8 i

Kod: Tümünü seç

new Float:g_wallorigin[33][3]

32 yi bir 33 yap ordan degildirde bi dene
Degistim map degisince eklenti açılmadı nativesiyle bağlı olan butun sistemlerde çöktü

Duvara Tırmanma Neden Log Atıyor ?

Gönderilme zamanı: Cum Ara 01, 2017 8:47 pm
gönderen PaZee
32 yi 33 yapacaktin sadece ?

yanlis bir sey yapmisin belli ki dogrusu bu olacak;

Kod: Tümünü seç

#include <amxmodx>
#include <fakemeta>
#include <fakemeta_util>
#include <hamsandwich>
#include <zombieplague>

new bool:g_WallClimb[33]
new Float:g_wallorigin[33][3]
new g_maxplayers, item_climb

public plugin_init() 
{
   register_plugin("[ZP] Extra Item: Wall climb ", "1.0", "Python1320 & Accelerator")
   register_forward(FM_Touch, "fwd_touch")
   register_forward(FM_PlayerPreThink, "fwd_playerprethink")
   RegisterHam(Ham_Killed, "player", "fw_PlayerKilled")
   
   g_maxplayers = get_maxplayers()
   
   item_climb = zp_register_extra_item("DuvaraTirmanma [E]", 3000, ZP_TEAM_ZOMBIE)
}

public zp_extra_item_selected(player, itemid)
{
   if (itemid == item_climb) 
   {
      g_WallClimb[player] = true
      client_printc(player, "!t[!gHG!n|!gZP!t] !nRoundluk Duvara Tirmanma Ozelligin Aktif.! !g[E TUSU].!");
   }
}

public zp_user_infected_post(id, infector)
   g_WallClimb[id] = false

public zp_user_humanized_post(id, survivor)
   g_WallClimb[id] = false

public fw_PlayerKilled(victim, attacker, shouldgib)
   g_WallClimb[victim] = false

public zp_round_ended(winteam)
{
   for (new id=1; id<=g_maxplayers; id++)
      g_WallClimb[id] = false
}

public client_connect(id)
   g_WallClimb[id] = false

public fwd_touch(id, world)
{
   if(!is_user_alive(id) || !g_WallClimb[id])
      return FMRES_IGNORED
      
   pev(id, pev_origin, g_wallorigin[id])

   return FMRES_IGNORED
}

public wallclimb(id, button)
{
   static Float:origin[3]
   pev(id, pev_origin, origin)

   if(get_distance_f(origin, g_wallorigin[id]) > 25.0)
      return FMRES_IGNORED  // if not near wall
   
   if(fm_get_entity_flags(id) & FL_ONGROUND)
      return FMRES_IGNORED
      
   if(button & IN_FORWARD)
   {
      static Float:velocity[3]
      velocity_by_aim(id, 120, velocity)
      fm_set_user_velocity(id, velocity)
   }
   else if(button & IN_BACK)
   {
      static Float:velocity[3]
      velocity_by_aim(id, -120, velocity)
      fm_set_user_velocity(id, velocity)
   }
   return FMRES_IGNORED
}   

public fwd_playerprethink(id) 
{
   if(!g_WallClimb[id]) 
      return FMRES_IGNORED
   
   new button = fm_get_user_button(id)
   
   if(button & IN_USE) //Use button = climb
      wallclimb(id, button)

   return FMRES_IGNORED
}

public belestirmanma(id)
{
   g_WallClimb[id] = true
   client_print(id, print_center, "Duvara Tirmanma Ozelligin Aktif.!")
}

public plugin_natives()
{
   register_native("tirmanmaac", "belestirmanma", 1)
}

// Colour Chat
stock client_printc(const id, const input[], any:...)
{
   new count = 1, players[32];
   static msg[191];
   vformat(msg, 190, input, 3);
   
   replace_all(msg, 190, "!g", "^x04"); // Green Color
   replace_all(msg, 190, "!n", "^x01"); // Default Color
   replace_all(msg, 190, "!t", "^x03"); // Team Color
   
   if (id) players[0] = id; else get_players(players, count, "ch");

   for (new i = 0; i < count; i++)
   {
      if (is_user_connected(players[i]))
      {
         message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
         write_byte(players[i]);
         write_string(msg);
         message_end();
      }
   }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1254\\ deff0\\ deflang1055{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/

Duvara Tırmanma Neden Log Atıyor ?

Gönderilme zamanı: Cum Ara 01, 2017 8:56 pm
gönderen ByBuLuT ☪
PaZee yazdı:32 yi 33 yapacaktin sadece ?

yanlis bir sey yapmisin belli ki dogrusu bu olacak;

Kod: Tümünü seç

#include <amxmodx>
#include <fakemeta>
#include <fakemeta_util>
#include <hamsandwich>
#include <zombieplague>

new bool:g_WallClimb[33]
new Float:g_wallorigin[33][3]
new g_maxplayers, item_climb

public plugin_init() 
{
   register_plugin("[ZP] Extra Item: Wall climb ", "1.0", "Python1320 & Accelerator")
   register_forward(FM_Touch, "fwd_touch")
   register_forward(FM_PlayerPreThink, "fwd_playerprethink")
   RegisterHam(Ham_Killed, "player", "fw_PlayerKilled")
   
   g_maxplayers = get_maxplayers()
   
   item_climb = zp_register_extra_item("DuvaraTirmanma [E]", 3000, ZP_TEAM_ZOMBIE)
}

public zp_extra_item_selected(player, itemid)
{
   if (itemid == item_climb) 
   {
      g_WallClimb[player] = true
      client_printc(player, "!t[!gHG!n|!gZP!t] !nRoundluk Duvara Tirmanma Ozelligin Aktif.! !g[E TUSU].!");
   }
}

public zp_user_infected_post(id, infector)
   g_WallClimb[id] = false

public zp_user_humanized_post(id, survivor)
   g_WallClimb[id] = false

public fw_PlayerKilled(victim, attacker, shouldgib)
   g_WallClimb[victim] = false

public zp_round_ended(winteam)
{
   for (new id=1; id<=g_maxplayers; id++)
      g_WallClimb[id] = false
}

public client_connect(id)
   g_WallClimb[id] = false

public fwd_touch(id, world)
{
   if(!is_user_alive(id) || !g_WallClimb[id])
      return FMRES_IGNORED
      
   pev(id, pev_origin, g_wallorigin[id])

   return FMRES_IGNORED
}

public wallclimb(id, button)
{
   static Float:origin[3]
   pev(id, pev_origin, origin)

   if(get_distance_f(origin, g_wallorigin[id]) > 25.0)
      return FMRES_IGNORED  // if not near wall
   
   if(fm_get_entity_flags(id) & FL_ONGROUND)
      return FMRES_IGNORED
      
   if(button & IN_FORWARD)
   {
      static Float:velocity[3]
      velocity_by_aim(id, 120, velocity)
      fm_set_user_velocity(id, velocity)
   }
   else if(button & IN_BACK)
   {
      static Float:velocity[3]
      velocity_by_aim(id, -120, velocity)
      fm_set_user_velocity(id, velocity)
   }
   return FMRES_IGNORED
}   

public fwd_playerprethink(id) 
{
   if(!g_WallClimb[id]) 
      return FMRES_IGNORED
   
   new button = fm_get_user_button(id)
   
   if(button & IN_USE) //Use button = climb
      wallclimb(id, button)

   return FMRES_IGNORED
}

public belestirmanma(id)
{
   g_WallClimb[id] = true
   client_print(id, print_center, "Duvara Tirmanma Ozelligin Aktif.!")
}

public plugin_natives()
{
   register_native("tirmanmaac", "belestirmanma", 1)
}

// Colour Chat
stock client_printc(const id, const input[], any:...)
{
   new count = 1, players[32];
   static msg[191];
   vformat(msg, 190, input, 3);
   
   replace_all(msg, 190, "!g", "^x04"); // Green Color
   replace_all(msg, 190, "!n", "^x01"); // Default Color
   replace_all(msg, 190, "!t", "^x03"); // Team Color
   
   if (id) players[0] = id; else get_players(players, count, "ch");

   for (new i = 0; i < count; i++)
   {
      if (is_user_connected(players[i]))
      {
         message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
         write_byte(players[i]);
         write_string(msg);
         message_end();
      }
   }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1254\\ deff0\\ deflang1055{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/
Benle aynı anda arkadas baska biseyi degismis ben bundan oldu sandım ondan olmus denicem tekrar