public e death
I am getting a error here but I am unsure why :(
Here are the errors ?
I highlighted red where it has the error :S
Quote:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
Error: Expected token: "}", but found "-identifier-" on line 136
Error: Invalid function call, not a valid address on line 136
Warning: Expression has no effect on line 136
Error: Expected token: ";", but found ")" on line 136
Error: Too many error messages on one line on line 136
Compilation aborted.
4 Errors.
Could not locate output file E:\Documents and Settings\Administrator\Desktop\PMS2 Project\scripting\compiled\codbo.amx (compile failed).
|
Quote:
public eDeath( )
{
new headshot, attacker = read_data( 1 )
new weapon = get_user_weapon(attacker, headshot, headshot)
headshot = read_data( 3 )
PlayerXP[attacker] += get_pcvar_num(XP_Kill)
if(PlayerClass[attacker] == 0)
if(headshot)
PlayerXP[attacker] += get_pcvar_num(XP_Hs)
if(weapon == CSW_KNIFE)
PlayerXP[attacker] += get_pcvar_num(XP_Knife)
while(PlayerXP[attacker] >= (LEVELS[PlayerLevel[attacker]])
{
client_print(attacker, print_chat, "[COD] Congratulations you are now level %i %s!")
PlayerLevel(attacker) += 1
}
ShowHud(attacker)
SaveData(attacker)
}
|
|