Raised This Month: $ Target: $400
 0% 

Compile Error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
TheCompany
BANNED
Join Date: Aug 2010
Old 08-10-2010 , 14:08   Compile Error
Reply With Quote #1

Why do i get this error:

PHP Code:
zp_countdown_remix_wo_csx.sma(79) : error 018initialization data exceeds declared size

1 Error
.
Could not locate output file zp_countdown_remix_wo_csx.amx (compile failed). 
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <zombieplague>

#define PLUGIN "[ZP] Infection Countdown Remix w/o CSX"
#define VERSION "1.3"
#define AUTHOR "Dels"

new countdown_timercvar_countdown_sound;
const 
TASK_ID 1603;

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);    
    
register_event("HLTV""event_round_start""a""1=0""2=0");
}
 
public 
plugin_precache()
{
    
precache_sound("fvox/biohazard_detected.wav");
    
precache_sound("fvox/one.wav");
    
precache_sound("fvox/two.wav");
    
precache_sound("fvox/three.wav");
    
precache_sound("fvox/four.wav");
    
precache_sound("fvox/five.wav");
    
precache_sound("fvox/six.wav");
    
precache_sound("fvox/seven.wav");
    
precache_sound("fvox/eight.wav");
    
precache_sound("fvox/nine.wav");
    
precache_sound("fvox/ten.wav");
}

public 
event_round_start()
{
    
//bugfix
    
remove_task(TASK_ID);
    
    
countdown_timer get_cvar_num("zp_delay") - 1;
    
set_task(4.0"countdown"TASK_ID);
}

public 
countdown()
{    
    new 
speak[11][] = { 
    
"fvox/biohazard_detected.wav",
    
"fvox/one.wav"
    
"fvox/two.wav"
    
"fvox/three.wav"
    
"fvox/four.wav"
    
"fvox/five.wav"
    
"fvox/six.wav"
    
"fvox/seven.wav"
    
"fvox/eight.wav"
    
"fvox/nine.wav",
    
"fvox/ten.wav",
    }

    if (
countdown_timer 1)
    {         
        
//emit_sound(0, CHAN_VOICE, speak[countdown_timer-1], 1.0, ATTN_NORM, 0, PITCH_NORM);
        
if (cvar_countdown_sound != 0)
            
client_cmd(0"spk %s"speak[countdown_timer-1]);
        
        
set_hudmessage(17900, -1.00.2820.021.00.010.110);    
        if (
countdown_timer != 1)
            
show_hudmessage(0"%L"LANG_PLAYER"COUNTDOWN_MSG"countdown_timer-1);
    }
    --
countdown_timer;
        
    if(
countdown_timer >= 1)
        
set_task(1.0"countdown"TASK_ID);
    else
        
remove_task(TASK_ID);

TheCompany is offline
 


Thread Tools
Display Modes

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 21:54.


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