public killed(vid, kid)
{
if(IsPlayer(kid) && is_user_alive(kid) && get_user_team(kid) != get_user_team(vid))
{
new weapon = get_user_weapon(kid);
if(weapon(kid) == CSW_KNIFE)
{
max_hp[kid] = 100 + stats_hp[kid];
set_user_health(kid, max_hp[kid]);
bonus_point[kid]+= bp_za_noz;
set_hudmessage(255, 80, 67, 0.50, 0.33, 1, 6.0, 4.0);
ShowSyncHudMsg(kid, SyncHudObj2, "+%i", bp_za_noz);
}
}
}
Bledy:
Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team test.sma(264) : warning 213: tag mismatch test.sma(278) : warning 213: tag mismatch test.sma(305) : error 012: invalid function call, not a valid address test.sma(305) : warning 215: expression has no effect test.sma(305) : error 001: expected token: ";", but found ")" test.sma(305) : error 029: invalid expression, assumed zero test.sma(305) : fatal error 107: too many error messages on one line Compilation aborted. 4 Errors.305 linijka to
if(weapon(kid) == CSW_KNIFE)