Raised This Month: $ Target: $400
 0% 

public e death


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
eskemo
Senior Member
Join Date: Dec 2008
Location: Australia
Old 01-08-2011 , 00:44   public e death
Reply With Quote #1

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)
}
eskemo 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 02:08.


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