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(PLUGIN, VERSION, AUTHOR)
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.0, 0.05, 0, 6.0, 12.0)
show_dhudmessage(0, "Terroristas [%i] | [%i] Counter^nTerroristas Wins [%i] | [%i] Counter Wins" , terror, cts, TerroWins, CtWins)
}
I tried but I get this error
PHP Code:
Error: Invalid function call, not a valid address on line 45
Error: Invalid expression, assumed zero on line 45
Warning: Expression has no effect on line 45
Error: Invalid function call, not a valid address on line 46
Error: Too many error messages on one line on line 46