PHP Code:
public inc_deaths(Victim)
{
new player_action = Victim
new team1[32],team2[32],team3[32],team4[32],team5[32],team6[32],team7[32],team8[32],team9[32],team10[32]
get_cvar_string("player_1",team1,32);
get_cvar_string("player_2",team2,32);
get_cvar_string("player_3",team3,32);
get_cvar_string("player_4",team4,32);
get_cvar_string("player_5",team5,32);
get_cvar_string("player_6",team6,32);
get_cvar_string("player_7",team7,32);
get_cvar_string("player_8",team8,32);
get_cvar_string("player_9",team9,32);
get_cvar_string("player_10",team10,32);
if (equal(Victim,team1)) (Line 414)
{
++Deaths_Player1
return PLUGIN_HANDLED
}
else if (equal(Victim,team2)) (Line 419 etc)
{
++Deaths_Player2
return PLUGIN_HANDLED
}
else if ( equal(Victim, team3) )
{
++Deaths_Player3
return PLUGIN_HANDLED
}
else if ( equal(Victim, team4) )
{
++Deaths_Player4
return PLUGIN_HANDLED
}
else if ( equal(Victim, team5) )
{
++Deaths_Player5
return PLUGIN_HANDLED
}
else if ( equal(Victim, team6) )
{
++Deaths_Player6
return PLUGIN_HANDLED
}
else if ( equal(Victim, team7) )
{
++Deaths_Player7
return PLUGIN_HANDLED
}
else if ( equal(Victim, team8) )
{
++Deaths_Player8
return PLUGIN_HANDLED
}
else if ( equal(Victim, team9) )
{
++Deaths_Player9
return PLUGIN_HANDLED
}
else if ( equal(Victim, team10) )
{
++Deaths_Player10
return PLUGIN_HANDLED
}
}
public inc_kills(Killer)
{
new team1[32],team2[32],team3[32],team4[32],team5[32],team6[32],team7[32],team8[32],team9[32],team10[32]
get_cvar_string("player_1",team1,32);
get_cvar_string("player_2",team2,32);
get_cvar_string("player_3",team3,32);
get_cvar_string("player_4",team4,32);
get_cvar_string("player_5",team5,32);
get_cvar_string("player_6",team6,32);
get_cvar_string("player_7",team7,32);
get_cvar_string("player_8",team8,32);
get_cvar_string("player_9",team9,32);
get_cvar_string("player_10",team10,32);
if ( equal(Killer, team1) )
{
++Kills_Player1
return PLUGIN_HANDLED
}
else if ( equal(Killer, team2) )
{
++Kills_Player2
return PLUGIN_HANDLED
}
else if ( equal(Killer, team3) )
{
++Kills_Player3
return PLUGIN_HANDLED
}
else if ( equal(Killer, team4) )
{
++Kills_Player4
return PLUGIN_HANDLED
}
else if ( equal(Killer, team5) )
{
++Kills_Player5
return PLUGIN_HANDLED
}
else if ( equal(Killer, team6) )
{
++Kills_Player6
return PLUGIN_HANDLED
}
else if ( equal(Killer, team7) )
{
++Kills_Player7
return PLUGIN_HANDLED
}
else if ( equal(Killer, team8) )
{
++Kills_Player8
return PLUGIN_HANDLED
}
else if ( equal(Killer, team9) )
{
++Kills_Player9
return PLUGIN_HANDLED
}
else if ( equal(Killer, team10) )
{
++Kills_Player10
return PLUGIN_HANDLED
}
}
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
Error: Argument type mismatch (argument 1) on line 414
Error: Argument type mismatch (argument 1) on line 419
Error: Argument type mismatch (argument 1) on line 424
Error: Argument type mismatch (argument 1) on line 429
Error: Argument type mismatch (argument 1) on line 434
Error: Argument type mismatch (argument 1) on line 439
Error: Argument type mismatch (argument 1) on line 444
Error: Argument type mismatch (argument 1) on line 449
Error: Argument type mismatch (argument 1) on line 454
Error: Argument type mismatch (argument 1) on line 459
Warning: Symbol is assigned a value that is never used: "player_action" on line 464
Warning: Function "inc_deaths" should return a value on line 464
Error: Argument type mismatch (argument 1) on line 478
Error: Argument type mismatch (argument 1) on line 483
Error: Argument type mismatch (argument 1) on line 488
Error: Argument type mismatch (argument 1) on line 493
Error: Argument type mismatch (argument 1) on line 498
Error: Argument type mismatch (argument 1) on line 503
Error: Argument type mismatch (argument 1) on line 508
Error: Argument type mismatch (argument 1) on line 513
Error: Argument type mismatch (argument 1) on line 518
Error: Argument type mismatch (argument 1) on line 523
Warning: Function "inc_kills" should return a value on line 528
Error: Argument type mismatch (argument 1) on line 545
Error: Argument type mismatch (argument 1) on line 546
Error: Undefined symbol "error" on line 552
Warning: Expression has no effect on line 552
Error: Expected token: ";", but found ")" on line 552
Error: Invalid expression, assumed zero on line 552
Error: Too many error messages on one line on line 552
Compilation aborted.
26 Errors.
Could not locate output file D:\E\Backup STORE F\Counter Strike Servers\elajtjumperz\cstrike\addons\amxmodx\A mxx Script\Gather-Test.amx (compile failed).
__________________