AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   public e death (https://forums.alliedmods.net/showthread.php?t=147318)

eskemo 01-08-2011 00:44

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)
}

Elusive138 01-08-2011 01:41

Re: public e death
 
PHP Code:

PlayerLevel(attacker) += 

==>
PHP Code:

Playerlevel[attacker] += 


eskemo 01-08-2011 03:22

Re: public e death
 
ok ty


All times are GMT -4. The time now is 02:08.

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