Raised This Month: $ Target: $400
 0% 

I can help?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
her0p
Senior Member
Join Date: Nov 2011
Old 02-14-2013 , 18:09   Re: I can help?
Reply With Quote #3

I want to fix this error to make it work on a server in cs, not zombie


PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <dhudmessage>

#define PLUGIN    "HUD Stats "
#define VERSION    "1.0"
#define AUTHOR    "KiA"

/* Initialization */

new TerroWins
new CtWins

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
set_task(0.5,"HUDUpdate"0,"",0,"b")
    
    
/* CVARS */
    
    
register_cvar("zphud_rcolor","0"// RED
    
register_cvar("zphud_gcolor","255"// GREEN
    
register_cvar("zphud_bcolor","0"// BLUE
    
    
}

public 
zp_round_ended(WinTeam)
{
    switch(
WinTeam
    {
        case 
CS_TEAM_T: {
            
TerroWins TerroWins 1
        
}
        case 
CS_TEAM_CT: {
            
CtWins CtWins 1
        
}
    }
}

public 
HUDUpdate()
{
    new 
terror CS_TEAM_T()
    new 
cts CS_TEAM_CT()
    
    
set_dhudmessage(get_cvar_num("zphud_rcolor"),get_cvar_num("zphud_gcolor"),get_cvar_num("zphud_bcolor"), -1.00.0506.012.0)
    
show_dhudmessage(0"Terroristas [%i] | [%i] Counter^nTerroristas Wins [%i] | [%i] Counter Wins" terrorctsTerroWinsCtWins)


I tried but I get this error

PHP Code:
ErrorInvalid function callnot a valid address on line 45
Error
Invalid expressionassumed zero on line 45
Warning
Expression has no effect on line 45
Error
Invalid function callnot a valid address on line 46
Error
Too many error messages on one line on line 46 

Last edited by her0p; 02-14-2013 at 18:10.
her0p is offline
 



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 20:40.


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