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

[Request] Bug fix


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eNNkds
Member
Join Date: Sep 2012
Location: Romania
Old 05-17-2017 , 15:29   [Request] Bug fix
Reply With Quote #1

I use Biohazard v2.00 Beta 3.
Code:
L 05/17/2017 - 20:01:15: Info (map "de_dust2x2") (file "addons/amxmodx/logs/error_20170517.log")
L 05/17/2017 - 20:01:15: [AMXX] Displaying debug trace (plugin "bio_server_addon_countdown.amxx")
L 05/17/2017 - 20:01:15: [AMXX] Run time error 4: index out of bounds 
L 05/17/2017 - 20:01:15: [AMXX]    [0] 25smb689.sma.p::zombie_countdown (line 42)
Code:
L 05/17/2017 - 22:48:44: [AMXX] Displaying debug trace (plugin "bio_eyecandy.amxx")
L 05/17/2017 - 22:48:44: [AMXX] Run time error 10: native error (native "message_begin")
L 05/17/2017 - 22:48:44: [AMXX]    [0] 5wpi1nx7.sma.p::set_icon_status (line 59)
L 05/17/2017 - 22:48:44: [AMXX]    [1] 5wpi1nx7.sma.p::event_infect (line 55)
Attached Files
File Type: sma Get Plugin or Get Source (bio_server_addon_countdown.sma - 411 views - 1.6 KB)
File Type: sma Get Plugin or Get Source (bio_eyecandy.sma - 483 views - 1.5 KB)

Last edited by eNNkds; 05-17-2017 at 15:51.
eNNkds is offline
Send a message via Skype™ to eNNkds
eNNkds
Member
Join Date: Sep 2012
Location: Romania
Old 05-18-2017 , 17:40   Re: [Request] Bug fix
Reply With Quote #2

anybody?!
eNNkds is offline
Send a message via Skype™ to eNNkds
Unknown Guy
Member
Join Date: Dec 2014
Location: Munich, Germany
Old 05-21-2017 , 08:10   Re: [Request] Bug fix
Reply With Quote #3

It's Zombie Plague section. Post the plugin on Biohazard thread.
Unknown Guy is offline
DeMNiX
Veteran Member
Join Date: Nov 2011
Location: Russia
Old 05-22-2017 , 16:50   Re: [Request] Bug fix
Reply With Quote #4

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <biohazard>

#define PLUGIN "[Bio] Countdown"
#define VERSION "1.0"
#define AUTHOR "Mr.Apple"

#define TASKID 6564812

new countdown
new cvar_time

new const speak[][] = { 
   
    
"fvox/zp_one.wav"
    
"fvox/zp_two.wav"
    
"fvox/zp_three.wav"
    
"fvox/zp_four.wav"
    
"fvox/zp_five.wav"
    
"fvox/zp_six.wav"
    
"fvox/zp_seven.wav"
    
"fvox/zp_eight.wav"
    
"fvox/zp_nine.wav"
    
"fvox/zp_ten.wav" 
}


public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("HLTV""event_round_start""a""1=0""2=0")

    
cvar_time register_cvar("bio_round_start_delay""15")
}

public 
plugin_precache()
{
    for( new 
0i<= charsmax(speak); i++)
        
precache_soundspeak[i] )
}

public 
event_round_start()
{
    
countdown get_pcvar_num(cvar_time)

    if( 
task_existsTASKID ) )
            
remove_task(TASKID)

    
set_taskfloatcountdown ), "zombie_countdown"TASKID__"b")
}

public 
zombie_countdown()
{   
    if(
countdown 1
        
remove_task(TASKID)

    if(
countdown<11
    {
        
emit_sound0CHAN_VOICEspeakcountdown ], 1.0ATTN_NORM0PITCH_NORM )
            
        
set_hudmessage(17900, -1.00.2820.021.00.010.110); 
        
show_hudmessage(0"%i"countdown); 
    }

    
countdown--;
}  
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1049\\ f0\\ fs16 \n\\ par }
*/ 
__________________
My channel with test codes
https://www.youtube.com/user/demnix03

Zombie Riot [Scenario & bots-zombie 11.11.2023]
https://youtu.be/8ZZan-aq2sc

Last edited by DeMNiX; 05-22-2017 at 22:04.
DeMNiX is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 06-01-2017 , 20:30   Re: [Request] Bug fix
Reply With Quote #5

Quote:
Originally Posted by DeMNiX
Code:
public plugin_precache() {     for( new i = 0; i<= charsmax(speak); i++)         precache_sound( speak[i] ) }
Denmix, I think you should use sizeof instead of charsmax... correct me if I'm wrong.
__________________









Last edited by CrazY.; 06-01-2017 at 20:31.
CrazY. is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 06-02-2017 , 04:14   Re: [Request] Bug fix
Reply With Quote #6

Quote:
Originally Posted by CrazY. View Post
Denmix, I think you should use sizeof instead of charsmax... correct me if I'm wrong.
< sizeof or <= charsmax are the same thing
__________________
georgik57 is online now
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
DeMNiX
Veteran Member
Join Date: Nov 2011
Location: Russia
Old 06-02-2017 , 04:26   Re: [Request] Bug fix
Reply With Quote #7

Quote:
Originally Posted by CrazY. View Post
Denmix, I think you should use sizeof instead of charsmax... correct me if I'm wrong.
nope
i just rewrite some code
but it's not work properly, need to rewrite, sorry
__________________
My channel with test codes
https://www.youtube.com/user/demnix03

Zombie Riot [Scenario & bots-zombie 11.11.2023]
https://youtu.be/8ZZan-aq2sc
DeMNiX is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 06-02-2017 , 05:26   Re: [Request] Bug fix
Reply With Quote #8

georgik57;denmix, OK, thanks.
__________________








CrazY. is offline
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 10:59.


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