Sma derleme hatası sorunu.

Konu

#1
Selamlar altaki eklenti panelde derleme hatası kod bozuk diye hata veriyor sebebi nedir acaba ? 

Kod:
#include <amxmodx>
#include <amxmisc>
#include <dhudmessage>
#include <engine>
#include <fakemeta>
#include <hamsandwich>
#include <fun>
#include <colorchat>
#include <cstrike>
#include <nvault>

#define PLUGIN "ChatBan System v2.3"
#define VERSION "2.3"
#define AUTHOR "Kalendarky"

#define CREDITS "Belo95135"

new name[32];

new iBanTimeRemaining[33];
new g_iPlayerChatBanTime[33];
new get_minutes[32];
new bantime[32];

new g_nVault;

new voiceBan;

new const Nadavkoreklama[][] =     
{
    "kokot",
    ".kot",
    "ko kot",
    "mrdk",
    "debil",
    "dilinak",
    "pico",
    "prdel",
    "kurva",
    "dpc",
    "kurvo",
    "jebla",
    "mrd",
    "pica",
    "pice",
    "zkurvy",
    "zmrd",
    "curak",
    "kkt",
    "kokot",
    "vyjeban",
    "zasrane",
    "napic",
    "neser",
    "jebu",
    "dpc",
    "devka",
    "devko",
    "picus",
    "kotel",
    "gsko",
    "gamesit",
    "epiczone",
    "epic zone",
    "slaci.eu",
    "csforce",
    "cs-force",
    "gamenice",
    "v-gaming",
    "gigagame",
    "cs-down",
    "halfgam",
    "gamesites",
    "gayshits",
    "gay",
    "homos",
    "gsko",
    ".cz",
    ".com",
    ".eu",
    ".info",
    ".ru",
    ".sk",
    "buzerant",
    "jebly homos",
    "skap",
    "skap na rakovinu",
    "pojeb"
}

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    register_clcmd("say", "chat_madafaka");
    register_clcmd("say_team", "chat_madafaka");
    register_concmd("amx_chatban", "Chatban_CMD", ADMIN_BAN, "<name or #userid> <minutes> [reason]");
    register_concmd("amx_unchatban", "Unban_CMD", ADMIN_IMMUNITY, "<name or #userid>");
    register_forward(FM_Voice_SetClientListening, "forward_OnVoice", 0);
    voiceBan = register_cvar("amx_voiceban","1");
    
    g_nVault = nvault_open( "chatbanvault" );
}
public plugin_natives()
{
    register_library("chatban_v22");
    register_native("chatban_isbanned", "get_ban");
    register_native("chatban_getban_time_seconds", "get_ban_time_sec");
    register_native("chatban_getban_time_minutes", "get_ban_time_min");
    register_native("chatban_getban_time_remain", "get_ban_time_remain");
}
public get_ban(id)
{
    if(g_iPlayerChatBanTime[ id ] > 0)
    iBanTimeRemaining[id] = g_iPlayerChatBanTime[id] - time();
    else
    iBanTimeRemaining[ id ] = 0;
    
    if(iBanTimeRemaining[id] > 0)
    {
        return 1;
    }
    else
    return 0;
}
public get_ban_time_sec(id)
{
    return bantime[id];
}
public get_ban_time_minutes(id)
{
    return get_minutes[id];
}
public get_ban_time_remain(id)
{
    if(g_iPlayerChatBanTime[ id ] > 0)
        iBanTimeRemaining[id] = g_iPlayerChatBanTime[id] - time();
    else
        iBanTimeRemaining[ id ] = 0;
    
    if(iBanTimeRemaining[id] > 0)
    {
        return iBanTimeRemaining[id];
    }
    else
        return 0;
}
public plugin_end( )
{
    nvault_close( g_nVault );
    
    return PLUGIN_CONTINUE;
}
public forward_OnVoice(receiver, sender, bool:bListen) {
    if(g_iPlayerChatBanTime[ sender ] > 0)
        iBanTimeRemaining[sender] = g_iPlayerChatBanTime[sender] - time();
    else
        iBanTimeRemaining[ sender ] = 0;
    
    if(get_pcvar_num(voiceBan) == 1) {
        if(receiver == sender || !is_user_connected(receiver) || !is_user_connected(sender) || iBanTimeRemaining[sender] > 0)
        {
            engfunc(EngFunc_SetClientListening, receiver, sender, false);
            forward_return(FMV_CELL, false);
            return FMRES_SUPERCEDE;
        }
    }
    /* Priprava funkcnosti s jailbreak modom.
    else if (get_pcvar_num(voiceBan) == 2)
    {
        if(receiver == sender || !is_user_connected(receiver) || !is_user_connected(sender) || iBanTimeRemaining[sender] > 0 || cs_get_user_team(sender) == CS_TEAM_T)
        {
            engfunc(EngFunc_SetClientListening, receiver, sender, false);
            forward_return(FMV_CELL, false);
            return FMRES_SUPERCEDE;
        }
    } */
    return FMRES_IGNORED;
}
public chat_madafaka(id)
{    
    new Speech[192]
    read_args(Speech,192)
    remove_quotes(Speech)
    
    if(g_iPlayerChatBanTime[ id ] > 0)
        iBanTimeRemaining[id] = g_iPlayerChatBanTime[id] - time();
    else
        iBanTimeRemaining[ id ] = 0;
    
    if(iBanTimeRemaining[id] > 0 && !equal(Speech,"/rs") || iBanTimeRemaining[id] > 0 && !equal(Speech,"/top15") || iBanTimeRemaining[id] > 0 && !equal(Speech,"/rank"))
    {
        ColorChat( id, GREEN, "^1[^4ChatBan^1] ^3Cas na ktory si dostal ban:^4 %d ^3minut (^4 %d ^3sekund)",get_minutes[id], bantime[id]);
        ColorChat( id, GREEN, "^1[^4ChatBan^1] ^3Mas ban na chat! Zostava:^4 %d ^3sekund",iBanTimeRemaining[ id ]);
        ColorChat( id, GREEN, "^1[^4ChatBan^1] ^3Prikazy ^4/rank, /rs, /top15 ^3su povolene!");
        return PLUGIN_HANDLED;
    }
    for( new i = 0 ; i < sizeof ( Nadavkoreklama ) ; i++)  {
        if(containi(Speech, Nadavkoreklama[i]) != -1)
        {
            get_user_name( id, name, 31 )
            ColorChat( id, GREEN, "^1[^4ChatManager^1] ^1|^4Reklamy/Nadavky^1| ^3su zakazane.");
            ColorChat( id, GREEN, "^1[^4ChatBan^1] ^1Bol si zabanovany na chat na 1 minutu.");
            server_cmd("amx_chatban ^"%s^" 1 ^"Porusenie pravidiel[Nadavky/Reklama]^"", name)
            return PLUGIN_HANDLED;
        }
    }
    return PLUGIN_CONTINUE;
}
public client_connect(id)
{
    Load(id);
}
public client_disconnect(id)
{
    Save(id);
}
public Chatban_CMD(id, level, cid)
{
    if (!cmd_access(id, level, cid, 2))
    return PLUGIN_HANDLED;
    
    new target[32], minutes[8], reason[64], admin[32], steamid[32];    
    read_argv(1, target, 31);
    read_argv(2, minutes, 7);
    read_argv(3, reason, 63);
    new targetid = cmd_target(id,target,8);
    
    get_user_authid(targetid,steamid,31);
    
    get_user_name(id,admin,31);
    
    
    if(!is_user_connected(targetid))
    {
        set_dhudmessage( 255, 25, 60, 0.28, 0.59, 1, 0.03, 3.5, 0.03, 12.0 );
        show_dhudmessage(id,"Chyba, Chat ban nejde dat hracovy^nKtory neni pripojeny!");
        return PLUGIN_HANDLED;
    }
    
    get_user_name(targetid,name,31)
    
    get_minutes[targetid] = str_to_num(minutes);
    bantime[targetid] = str_to_num(minutes) * 60;
    
    g_iPlayerChatBanTime[targetid] = time() + bantime[targetid];
    
    set_dhudmessage( 255, 25, 60, 0.28, 0.59, 0, 6.0, 12.0);    
    show_dhudmessage(0,"Hrac %s Dostal Chat Ban ^nod Admina: %s ^n Dovod:%s ^n Dlzka:%d minut", name ,admin ,reason, get_minutes[targetid]);
    
    return PLUGIN_HANDLED;
}    
public Unban_CMD(id, level, cid)
{
    if (!cmd_access(id, level, cid, 2))
    return PLUGIN_HANDLED;
    
    new target[32], name[32], admin[32];
    
    read_argv(1, target, 31)
    new targetid = cmd_target(id,target,8)
    
    
    
    if(!is_user_connected(targetid))
    {
        set_dhudmessage(0, 0, 255, 0.28, 0.59, 0, 6.0, 9.0)
        show_dhudmessage(id,"Chyba, UnChatban nejde dat hracovy^nKtory neni pripojeny!")
        return PLUGIN_HANDLED;
    }
    
    get_user_name(id,admin,31)
    
    
    g_iPlayerChatBanTime[targetid] = 0;
    iBanTimeRemaining[targetid] = 0;
    Save(targetid);
    
    Save(id)
    get_user_name(targetid,name,31)
    
    set_dhudmessage( 255, 25, 60, 0.28, 0.59, 0, 6.0, 12.0);    
    show_dhudmessage(0,"Hrac %s Dostal Unban na Chat ^nod Admina: %s ", name ,admin);
    
    return PLUGIN_HANDLED;
}

public Save(id)
{
    new szAuthid[ 32 ];
    get_user_authid( id, szAuthid, charsmax(szAuthid) );
    
    new szVaultKey[ 128 ], szVaultData[ 512 ];
    
    formatex( szVaultKey, 127, "chatban-%s", szAuthid );
    formatex( szVaultData, 511, "%i %i %i", g_iPlayerChatBanTime[id], bantime[id], get_minutes[id]);
    nvault_set( g_nVault, szVaultKey, szVaultData );
}

public Load(id)
{
    new szAuthid[ 32 ];
    get_user_authid( id, szAuthid, charsmax(szAuthid) );
    
    new szVaultKey[ 128 ], szVaultData[ 512 ];
    
    formatex( szVaultKey, 127, "chatban-%s", szAuthid );
    formatex( szVaultData, 511, "%i %i %i", g_iPlayerChatBanTime[id], bantime[id], get_minutes[id]);
    
    nvault_get( g_nVault, szVaultKey, szVaultData, 511 );
    
    new chat_time[33],bants[33],getmin[33];
    
    parse( szVaultData, chat_time, 31, bants, 31, getmin, 31);
    
    new chattime[33];
    chattime[id] = str_to_num(chat_time);
    new bantss[33];
    bantss[id] = str_to_num(bants);
    new getmins[33];
    getmins[id] = str_to_num(getmin);
    
    if(chattime[id] > 0)
    g_iPlayerChatBanTime[ id ] = str_to_num(chat_time);
    else
    g_iPlayerChatBanTime[ id ] = 0;
    if(bantss[id] > 0)
    bantime[id] = str_to_num(bants);
    else
    bantime[id] = 0;
    if(getmins[id] > 0)
    get_minutes[id] = str_to_num(getmin);
    else
    get_minutes[id] = 0;
    
}

#3
(31-10-2021, 23:17)erra1881 Adlı Kullanıcıdan Alıntı: Selamlar altaki eklenti panelde derleme hatası kod bozuk diye hata veriyor sebebi nedir acaba ? 

Kod:
#include <amxmodx>
#include <amxmisc>
#include <dhudmessage>
#include <engine>
#include <fakemeta>
#include <hamsandwich>
#include <fun>
#include <colorchat>
#include <cstrike>
#include <nvault>

#define PLUGIN "ChatBan System v2.3"
#define VERSION "2.3"
#define AUTHOR "Kalendarky"

#define CREDITS "Belo95135"

new name[32];

new iBanTimeRemaining[33];
new g_iPlayerChatBanTime[33];
new get_minutes[32];
new bantime[32];

new g_nVault;

new voiceBan;

new const Nadavkoreklama[][] =     
{
    "kokot",
    ".kot",
    "ko kot",
    "mrdk",
    "debil",
    "dilinak",
    "pico",
    "prdel",
    "kurva",
    "dpc",
    "kurvo",
    "jebla",
    "mrd",
    "pica",
    "pice",
    "zkurvy",
    "zmrd",
    "curak",
    "kkt",
    "kokot",
    "vyjeban",
    "zasrane",
    "napic",
    "neser",
    "jebu",
    "dpc",
    "devka",
    "devko",
    "picus",
    "kotel",
    "gsko",
    "gamesit",
    "epiczone",
    "epic zone",
    "slaci.eu",
    "csforce",
    "cs-force",
    "gamenice",
    "v-gaming",
    "gigagame",
    "cs-down",
    "halfgam",
    "gamesites",
    "gayshits",
    "gay",
    "homos",
    "gsko",
    ".cz",
    ".com",
    ".eu",
    ".info",
    ".ru",
    ".sk",
    "buzerant",
    "jebly homos",
    "skap",
    "skap na rakovinu",
    "pojeb"
}

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    register_clcmd("say", "chat_madafaka");
    register_clcmd("say_team", "chat_madafaka");
    register_concmd("amx_chatban", "Chatban_CMD", ADMIN_BAN, "<name or #userid> <minutes> [reason]");
    register_concmd("amx_unchatban", "Unban_CMD", ADMIN_IMMUNITY, "<name or #userid>");
    register_forward(FM_Voice_SetClientListening, "forward_OnVoice", 0);
    voiceBan = register_cvar("amx_voiceban","1");
    
    g_nVault = nvault_open( "chatbanvault" );
}
public plugin_natives()
{
    register_library("chatban_v22");
    register_native("chatban_isbanned", "get_ban");
    register_native("chatban_getban_time_seconds", "get_ban_time_sec");
    register_native("chatban_getban_time_minutes", "get_ban_time_min");
    register_native("chatban_getban_time_remain", "get_ban_time_remain");
}
public get_ban(id)
{
    if(g_iPlayerChatBanTime[ id ] > 0)
    iBanTimeRemaining[id] = g_iPlayerChatBanTime[id] - time();
    else
    iBanTimeRemaining[ id ] = 0;
    
    if(iBanTimeRemaining[id] > 0)
    {
        return 1;
    }
    else
    return 0;
}
public get_ban_time_sec(id)
{
    return bantime[id];
}
public get_ban_time_minutes(id)
{
    return get_minutes[id];
}
public get_ban_time_remain(id)
{
    if(g_iPlayerChatBanTime[ id ] > 0)
        iBanTimeRemaining[id] = g_iPlayerChatBanTime[id] - time();
    else
        iBanTimeRemaining[ id ] = 0;
    
    if(iBanTimeRemaining[id] > 0)
    {
        return iBanTimeRemaining[id];
    }
    else
        return 0;
}
public plugin_end( )
{
    nvault_close( g_nVault );
    
    return PLUGIN_CONTINUE;
}
public forward_OnVoice(receiver, sender, bool:bListen) {
    if(g_iPlayerChatBanTime[ sender ] > 0)
        iBanTimeRemaining[sender] = g_iPlayerChatBanTime[sender] - time();
    else
        iBanTimeRemaining[ sender ] = 0;
    
    if(get_pcvar_num(voiceBan) == 1) {
        if(receiver == sender || !is_user_connected(receiver) || !is_user_connected(sender) || iBanTimeRemaining[sender] > 0)
        {
            engfunc(EngFunc_SetClientListening, receiver, sender, false);
            forward_return(FMV_CELL, false);
            return FMRES_SUPERCEDE;
        }
    }
    /* Priprava funkcnosti s jailbreak modom.
    else if (get_pcvar_num(voiceBan) == 2)
    {
        if(receiver == sender || !is_user_connected(receiver) || !is_user_connected(sender) || iBanTimeRemaining[sender] > 0 || cs_get_user_team(sender) == CS_TEAM_T)
        {
            engfunc(EngFunc_SetClientListening, receiver, sender, false);
            forward_return(FMV_CELL, false);
            return FMRES_SUPERCEDE;
        }
    } */
    return FMRES_IGNORED;
}
public chat_madafaka(id)
{    
    new Speech[192]
    read_args(Speech,192)
    remove_quotes(Speech)
    
    if(g_iPlayerChatBanTime[ id ] > 0)
        iBanTimeRemaining[id] = g_iPlayerChatBanTime[id] - time();
    else
        iBanTimeRemaining[ id ] = 0;
    
    if(iBanTimeRemaining[id] > 0 && !equal(Speech,"/rs") || iBanTimeRemaining[id] > 0 && !equal(Speech,"/top15") || iBanTimeRemaining[id] > 0 && !equal(Speech,"/rank"))
    {
        ColorChat( id, GREEN, "^1[^4ChatBan^1] ^3Cas na ktory si dostal ban:^4 %d ^3minut (^4 %d ^3sekund)",get_minutes[id], bantime[id]);
        ColorChat( id, GREEN, "^1[^4ChatBan^1] ^3Mas ban na chat! Zostava:^4 %d ^3sekund",iBanTimeRemaining[ id ]);
        ColorChat( id, GREEN, "^1[^4ChatBan^1] ^3Prikazy ^4/rank, /rs, /top15 ^3su povolene!");
        return PLUGIN_HANDLED;
    }
    for( new i = 0 ; i < sizeof ( Nadavkoreklama ) ; i++)  {
        if(containi(Speech, Nadavkoreklama[i]) != -1)
        {
            get_user_name( id, name, 31 )
            ColorChat( id, GREEN, "^1[^4ChatManager^1] ^1|^4Reklamy/Nadavky^1| ^3su zakazane.");
            ColorChat( id, GREEN, "^1[^4ChatBan^1] ^1Bol si zabanovany na chat na 1 minutu.");
            server_cmd("amx_chatban ^"%s^" 1 ^"Porusenie pravidiel[Nadavky/Reklama]^"", name)
            return PLUGIN_HANDLED;
        }
    }
    return PLUGIN_CONTINUE;
}
public client_connect(id)
{
    Load(id);
}
public client_disconnect(id)
{
    Save(id);
}
public Chatban_CMD(id, level, cid)
{
    if (!cmd_access(id, level, cid, 2))
    return PLUGIN_HANDLED;
    
    new target[32], minutes[8], reason[64], admin[32], steamid[32];    
    read_argv(1, target, 31);
    read_argv(2, minutes, 7);
    read_argv(3, reason, 63);
    new targetid = cmd_target(id,target,8);
    
    get_user_authid(targetid,steamid,31);
    
    get_user_name(id,admin,31);
    
    
    if(!is_user_connected(targetid))
    {
        set_dhudmessage( 255, 25, 60, 0.28, 0.59, 1, 0.03, 3.5, 0.03, 12.0 );
        show_dhudmessage(id,"Chyba, Chat ban nejde dat hracovy^nKtory neni pripojeny!");
        return PLUGIN_HANDLED;
    }
    
    get_user_name(targetid,name,31)
    
    get_minutes[targetid] = str_to_num(minutes);
    bantime[targetid] = str_to_num(minutes) * 60;
    
    g_iPlayerChatBanTime[targetid] = time() + bantime[targetid];
    
    set_dhudmessage( 255, 25, 60, 0.28, 0.59, 0, 6.0, 12.0);    
    show_dhudmessage(0,"Hrac %s Dostal Chat Ban ^nod Admina: %s ^n Dovod:%s ^n Dlzka:%d minut", name ,admin ,reason, get_minutes[targetid]);
    
    return PLUGIN_HANDLED;
}    
public Unban_CMD(id, level, cid)
{
    if (!cmd_access(id, level, cid, 2))
    return PLUGIN_HANDLED;
    
    new target[32], name[32], admin[32];
    
    read_argv(1, target, 31)
    new targetid = cmd_target(id,target,8)
    
    
    
    if(!is_user_connected(targetid))
    {
        set_dhudmessage(0, 0, 255, 0.28, 0.59, 0, 6.0, 9.0)
        show_dhudmessage(id,"Chyba, UnChatban nejde dat hracovy^nKtory neni pripojeny!")
        return PLUGIN_HANDLED;
    }
    
    get_user_name(id,admin,31)
    
    
    g_iPlayerChatBanTime[targetid] = 0;
    iBanTimeRemaining[targetid] = 0;
    Save(targetid);
    
    Save(id)
    get_user_name(targetid,name,31)
    
    set_dhudmessage( 255, 25, 60, 0.28, 0.59, 0, 6.0, 12.0);    
    show_dhudmessage(0,"Hrac %s Dostal Unban na Chat ^nod Admina: %s ", name ,admin);
    
    return PLUGIN_HANDLED;
}

public Save(id)
{
    new szAuthid[ 32 ];
    get_user_authid( id, szAuthid, charsmax(szAuthid) );
    
    new szVaultKey[ 128 ], szVaultData[ 512 ];
    
    formatex( szVaultKey, 127, "chatban-%s", szAuthid );
    formatex( szVaultData, 511, "%i %i %i", g_iPlayerChatBanTime[id], bantime[id], get_minutes[id]);
    nvault_set( g_nVault, szVaultKey, szVaultData );
}

public Load(id)
{
    new szAuthid[ 32 ];
    get_user_authid( id, szAuthid, charsmax(szAuthid) );
    
    new szVaultKey[ 128 ], szVaultData[ 512 ];
    
    formatex( szVaultKey, 127, "chatban-%s", szAuthid );
    formatex( szVaultData, 511, "%i %i %i", g_iPlayerChatBanTime[id], bantime[id], get_minutes[id]);
    
    nvault_get( g_nVault, szVaultKey, szVaultData, 511 );
    
    new chat_time[33],bants[33],getmin[33];
    
    parse( szVaultData, chat_time, 31, bants, 31, getmin, 31);
    
    new chattime[33];
    chattime[id] = str_to_num(chat_time);
    new bantss[33];
    bantss[id] = str_to_num(bants);
    new getmins[33];
    getmins[id] = str_to_num(getmin);
    
    if(chattime[id] > 0)
    g_iPlayerChatBanTime[ id ] = str_to_num(chat_time);
    else
    g_iPlayerChatBanTime[ id ] = 0;
    if(bantss[id] > 0)
    bantime[id] = str_to_num(bants);
    else
    bantime[id] = 0;
    if(getmins[id] > 0)
    get_minutes[id] = str_to_num(getmin);
    else
    get_minutes[id] = 0;
    
}

denendi fakat hata devam ediyor.
#4
Eklentiyi derlediğiniz zaman hata alıyor musunuz ?
Pcde olmadığım için kontrol edemiyorum.

Pcye geçtim eklentiyi kontrol ettim. O dediğimi yaptıysanız sorunsuz bir şekilde yüklenmesi gerekmekte.
(- Ücretli Eklenti Yaptırmak İsteyen -)
#5
İstek konusu, @suriyelikene adlı kullanıcı tarafından 11 saat içinde çözülmüştür.
İsteği çözdüğü için suriyelikene Adlı kullanıcıya 1 rep puanı ve 1 yardım etme puanı otomatik olarak verilmiştir.
suriyelikene Adlı kullanıcı sizin dışınızda toplam 714 kişiye yardım etmiştir.

Herhangi bir konuda hata olduğunu düşünüyorsanız destek sistemi üzerinden iletişim kurabilirsiniz.

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

Yorum yapmak için üye olmanız gerekiyor

ya da

Benzer Konular

7
Yorum
354
Okunma
30-11-2022, 21:05
7
Yorum
488
Okunma
20-11-2022, 17:26
4
Yorum
570
Okunma
15-11-2022, 12:19
3
Yorum
600
Okunma
15-11-2022, 02:23
6
Yorum
638
Okunma
13-11-2022, 03:16
Task
Kayıt Ol
Discord Adresimize Katılın