Raised This Month: $51 Target: $400
 12% 

Send your bug fix requests here


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cr0w
Senior Member
Join Date: Mar 2014
Location: middle east
Old 09-17-2015 , 04:49   Send your bug fix requests here
Reply With Quote #1

Send Your Bugs Here
Description : an basic topic for reporting sub plugins bugs to @alliedmodders and plugin developers and after fix any sub plugins bugs . the first post will be updated and fixed programs will be listed . because there are many bugs to report here but we can't make any topics for bugs we just need a topic like this that's should work like bug tracker .
rules : Pleas don't ask anything shit here . just be cool and send your fix requests the spam post will be report and delete .

Plugin Name : my Plugin name
Your ZP Version : 5.0.8a
Code:
L 09/17/2015 - 13:17:22: [ZP] Invalid Player (id)
L 09/17/2015 - 13:17:22: [AMXX] Displaying debug trace (plugin "subplugin.amxx")
L 09/17/2015 - 13:17:22: [AMXX] Run time error 10: native error (native "zp_example")
__________________
the city is no fun
there is no sun
and its so dark

Last edited by cr0w; 09-17-2015 at 04:58.
cr0w is offline
Send a message via Yahoo to cr0w Send a message via Skype™ to cr0w
cr0w
Senior Member
Join Date: Mar 2014
Location: middle east
Old 09-17-2015 , 04:51   Re: Send your bug fix requests here
Reply With Quote #2

plugin : zombie radar scanner
zp version : 5.0.8a
error :
Quote:
L 09/17/2015 - 13:17:22: [ZP] Invalid Player (23)
L 09/17/2015 - 13:17:22: [AMXX] Displaying debug trace (plugin "zp_extra_radar.amxx")
L 09/17/2015 - 13:17:22: [AMXX] Run time error 10: native error (native "zp_get_user_zombi
after Joing server by admin this message will showin on console and flood it


PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <zombieplague>

#define PLUGIN "Zombie Plague extra item - Radar"
#define VERSION "1.3"
#define AUTHOR "Sonic Son'edit"

new g_msgHostageAddg_msgHostageDelg_maxplayersg_itemid_radar;

new 
player_has_radar[33];
new 
zp_radar_beep;
new 
zp_radar_show_dead;

new 
cvar_zp_radar_beep;
new 
cvar_zp_radar_single_round;
new 
cvar_zp_radar_show_dead;

new const 
sound_radar_beep[] = "zombie_plague/nes_8bit_alien3_radar_beep1.wav"


public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("HLTV""event_round_start""a")
    
    
RegisterHam(Ham_Killed"player""fw_PlayerKilled")

    
g_msgHostageAdd get_user_msgid("HostagePos")
    
g_msgHostageDel get_user_msgid("HostageK")
    
    
cvar_zp_radar_beep register_cvar("zp_radar_beep""1")
    
cvar_zp_radar_single_round register_cvar("zp_radar_single_round""0")
    
cvar_zp_radar_show_dead register_cvar("zp_radar_show_dead""0")
    
    
g_maxplayers get_maxplayers()

    
g_itemid_radar zp_register_extra_item("Radar Scanner"10ZP_TEAM_HUMAN)
    
    for (new 
1i<=g_maxplayers;i++) player_has_radar[i] = false;    
    
    
set_task (2.0,"radar_scan",_,_,_,"b");
}

public 
plugin_precache()
{
    
precache_sound(sound_radar_beep)
}

public 
plugin_cfg()
{
    new 
cfgdir[32]
    
get_localinfo("amxx_configsdir",cfgdir,sizeof cfgdir)
    
server_cmd("exec %s/zp_radar.cfg"cfgdir)
}

public 
event_round_start()
{
    if (
get_pcvar_num(cvar_zp_radar_beep) == 1)
        
zp_radar_beep=true;
    else
        
zp_radar_beep=false;
    
    if (
get_pcvar_num(cvar_zp_radar_show_dead) == 1)
        
zp_radar_show_dead=true;
    else
        
zp_radar_show_dead=false;
}

public 
zp_extra_item_selected(playeritemid)
{
    if (
itemid == g_itemid_radarplayer_has_radar[player] = true;
}

public 
radar_scan()
{    
    new 
zombie_count 0;
    new 
zombie_list[32];
    new 
ZombieCoords[3];
    new 
idi;
    
    for (new 
id=1id<=g_maxplayersid++)
    {
        if (
zp_radar_show_dead)
        {
            if (
zp_get_user_zombie(id))
            {
                
zombie_count++;
                
zombie_list[zombie_count]=id;
            }
        }
        else
        {
            if ((
zp_get_user_zombie(id))&&(is_user_alive(id)))
            {
                
zombie_count++;
                
zombie_list[zombie_count]=id;
            }
        }
    }
    
    for (
id=1id<=g_maxplayersid++)
    {
        if ((!
is_user_alive(id))||(!player_has_radar[id])) continue;
        
        for (
i=1;i<=zombie_count;i++)
        {            
            
get_user_origin(zombie_list[i], ZombieCoords)
        
            
message_begin(MSG_ONE_UNRELIABLEg_msgHostageAdd, {0,0,0}, id)
            
write_byte(id)
            
write_byte(i)        
            
write_coord(ZombieCoords[0])
            
write_coord(ZombieCoords[1])
            
write_coord(ZombieCoords[2])
            
message_end()
        
            
message_begin(MSG_ONE_UNRELIABLEg_msgHostageDel, {0,0,0}, id)
            
write_byte(i)
            
message_end()
        }
        if (
zp_radar_beepemit_sound(idCHAN_ITEMsound_radar_beep1.0ATTN_NORM0PITCH_NORM);
    }
}

public 
zp_user_infected_post(idinfector)
{
    
player_has_radar[id] = false;
}

public 
fw_PlayerKilled(victimattackershouldgib)
{    
    
player_has_radar[victim] = false;
}

public 
zp_round_ended(winteam)
{
    if (
get_pcvar_num(cvar_zp_radar_single_round)==1
        for (new 
id=1id<=g_maxplayersid++)
            
player_has_radar[id] = false;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1049\\ f0\\ fs16 \n\\ par }
*/ 
__________________
the city is no fun
there is no sun
and its so dark

Last edited by cr0w; 09-17-2015 at 04:59.
cr0w is offline
Send a message via Yahoo to cr0w Send a message via Skype™ to cr0w
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode