⭐🚀 TkyNET | Blacklist ve Profesyonel DDoS Korumalı TeamSpeak 3 Sunucuları 🚀⭐
Sponsor Görsel
🇹🇷 TR Lokasyon | 🛡️ Gelişmiş DDoS Koruması | ⚡ Düşük Ping | 🎧 Kesintisiz TS3 | Hostlar
Sponsor Görsel 2
SponsorSponsor

Konu

#1
Kill Head eklentisi kurulu lakin panelde eklenti hatalarında şu hatayı verip duruyor;

get_pcvar_num

Run time error 10 (plugin "1584717124_killhealed.amxx") (native "get_pcvar_num") - debug not enabled!
[AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).


Bu hatayı çözümleyebilir misiniz?

Kod:
#define DAMAGE_RECIEVED
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

static const COLOR[] = "^x04" //green
static const CONTACT[] = ""
new maxplayers
new gmsgSayText
new mpd, mkb, mhb
new g_MsgSync
new health_add
new health_hs_add
new health_max
new nKiller
new nKiller_hp
new nHp_add
new nHp_max
new g_menu_active
new bool:HasC4[33]
#define Keysrod (1<<0)|(1<<1)|(1<<9) // Keys: 1234567890
#if defined DAMAGE_RECIEVED
    new g_MsgSync2
#endif

public plugin_init()
{
    register_plugin("kill_healed", "1.0", "Dev!l")
    health_add = register_cvar("hp", "30")
    health_hs_add = register_cvar("hp_hs", "30")
    health_max = register_cvar("max_hp", "170")
    register_event("DeathMsg","death_msg","a")
    maxplayers = get_maxplayers()
    gmsgSayText = get_user_msgid("SayText")
    register_event("DeathMsg", "hook_death", "a", "1>0")
    g_MsgSync = CreateHudSyncObj()
#if defined DAMAGE_RECIEVED
    g_MsgSync2 = CreateHudSyncObj()
#endif    
}
public death_msg()
{
    if(read_data(1)<=maxplayers && read_data(1) && read_data(1)!=read_data(2)) cs_set_user_money(read_data(1),cs_get_user_money(read_data(1)) + get_pcvar_num(mkb) - 300)
}
public hook_death()
{
   // Killer id
   nKiller = read_data(1)
   
   if ( (read_data(3) == 1) && (read_data(5) == 0) )
   {
      nHp_add = get_pcvar_num (health_hs_add)
   }
   else
      nHp_add = get_pcvar_num (health_add)
   nHp_max = get_pcvar_num (health_max)
   // Updating Killer HP
   if(!(get_user_flags(nKiller) & ADMIN_LEVEL_H))
   return;

   nKiller_hp = get_user_health(nKiller)
   nKiller_hp += nHp_add
   // Maximum HP check
   if (nKiller_hp > nHp_max) nKiller_hp = nHp_max
   set_user_health(nKiller, nKiller_hp)
   // Hud message "Healed +30/+30 hp"
   set_hudmessage(0, 255, 0, -1.0, 0.15, 0, 1.0, 1.0, 0.1, 0.1, -1)
   show_hudmessage(nKiller, "Healed +%d hp", nHp_add)
   // Screen fading
   message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, nKiller)
   write_short(1<<10)
   write_short(1<<10)
   write_short(0x0000)
   write_byte(0)
   write_byte(0)
   write_byte(200)
   write_byte(75)
   message_end()

}

#2
..
PHP Kod:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

#define DAMAGE_RECIEVED

new maxplayers
new health_add
new health_hs_add
new health_max
new nKiller
new nKiller_hp
new nHp_add
new nHp_max
#define Keysrod (1<<0)|(1<<1)|(1<<9) // Keys: 1234567890

public plugin_init()
{
    
register_plugin("kill_healed""1.0""Dev!l")
    
health_add register_cvar("hp""30")
    
health_hs_add register_cvar("hp_hs""30")
    
health_max register_cvar("max_hp""170")
    
register_event("DeathMsg","death_msg","a")
    
maxplayers get_maxplayers()
    
register_event("DeathMsg""hook_death""a""1>0")  
}
public 
death_msg()
{
    if(
read_data(1)<=maxplayers && read_data(1) && read_data(1)!=read_data(2)) {
        
cs_set_user_money(read_data(1),cs_get_user_money(read_data(1))+200-300);
    }
}
public 
hook_death()
{
    
// Killer id
    
nKiller read_data(1)
    
    if ( (
read_data(3) == 1) && (read_data(5) == 0) )
    {
        
nHp_add get_pcvar_num (health_hs_add)
    }
    else
        
nHp_add get_pcvar_num (health_add)
    
nHp_max get_pcvar_num (health_max)
    
// Updating Killer HP
    
if(!(get_user_flags(nKiller) & ADMIN_LEVEL_H))
        return;
    
    
nKiller_hp get_user_health(nKiller)
    
nKiller_hp += nHp_add
    
// Maximum HP check
    
if (nKiller_hp nHp_maxnKiller_hp nHp_max
    set_user_health
(nKillernKiller_hp)
    
// Hud message "Healed +30/+30 hp"
    
set_hudmessage(02550, -1.00.1501.01.00.10.1, -1)
    
show_hudmessage(nKiller"Healed +%d hp"nHp_add)
    
// Screen fading
    
message_begin(MSG_ONEget_user_msgid("ScreenFade"), {0,0,0}, nKiller)
    
write_short(1<<10)
    
write_short(1<<10)
    
write_short(0x0000)
    
write_byte(0)
    
write_byte(0)
    
write_byte(200)
    
write_byte(75)
    
message_end()
    

#3
çok teşekkürler
#4
Konunuz "Çözülmüş İsteklere" taşınmıştır.
Linksta

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da
Task