Raised This Month: $ Target: $400
 0% 

if()


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 02-02-2010 , 15:56   if()
Reply With Quote #1

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(Victimteam3) )
   {
     ++
Deaths_Player3
     
return PLUGIN_HANDLED
   
}
   else if ( 
equal(Victimteam4) )
   {
     ++
Deaths_Player4
     
return PLUGIN_HANDLED
   
}
   else if ( 
equal(Victimteam5) )
   {
     ++
Deaths_Player5
     
return PLUGIN_HANDLED
   
}
   else if ( 
equal(Victimteam6) )
   {
     ++
Deaths_Player6
     
return PLUGIN_HANDLED
   
}
   else if ( 
equal(Victimteam7) )
   {
     ++
Deaths_Player7
     
return PLUGIN_HANDLED
   
}
   else if ( 
equal(Victimteam8) )
   {
     ++
Deaths_Player8
     
return PLUGIN_HANDLED
   
}
   else if ( 
equal(Victimteam9) )
   {
     ++
Deaths_Player9
     
return PLUGIN_HANDLED
   
}
   else if ( 
equal(Victimteam10) )
   {
     ++
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(Killerteam1) )
   {    
     ++
Kills_Player1
     
return PLUGIN_HANDLED
   
}
   else if ( 
equal(Killerteam2) )
   {
     ++
Kills_Player2
     
return PLUGIN_HANDLED
   
}
   else if ( 
equal(Killerteam3) )
   {
     ++
Kills_Player3
     
return PLUGIN_HANDLED
   
}
   else if ( 
equal(Killerteam4) )
   {
     ++
Kills_Player4
     
return PLUGIN_HANDLED
   
}
   else if ( 
equal(Killerteam5) )
   {
     ++
Kills_Player5
     
return PLUGIN_HANDLED
   
}
   else if ( 
equal(Killerteam6) )
   {
     ++
Kills_Player6
     
return PLUGIN_HANDLED
   
}
   else if ( 
equal(Killerteam7) )
   {
     ++
Kills_Player7
     
return PLUGIN_HANDLED
   
}
   else if ( 
equal(Killerteam8) )
   {
     ++
Kills_Player8
     
return PLUGIN_HANDLED
   
}
   else if ( 
equal(Killerteam9) )
   {
     ++
Kills_Player9
     
return PLUGIN_HANDLED
   
}
   else if ( 
equal(Killerteam10) )
   {
     ++
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).
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))
ProIcons 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 07:26.


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