Ale mam błedy
Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team Warning: Loose indentation on line 1352 Warning: Loose indentation on line 1390 Warning: Loose indentation on line 2345 Warning: Loose indentation on line 2396 Warning: Loose indentation on line 3087 Warning: Loose indentation on line 3093 Error: Array must be indexed (variable "player_item_name") on line 3813 Error: Empty statement on line 3813 Error: Array must be indexed (variable "player_item_name") on line 3920 Error: Invalid string (possibly non-terminated string) on line 4047 Warning: Loose indentation on line 4885 Warning: Loose indentation on line 4892 Warning: Loose indentation on line 4894 Warning: Loose indentation on line 5074 Warning: Loose indentation on line 5091 Warning: Loose indentation on line 5344 Warning: Loose indentation on line 5345 Warning: Loose indentation on line 5933 Warning: Loose indentation on line 7998 Warning: Loose indentation on line 8004 Warning: Loose indentation on line 8109 Warning: Loose indentation on line 8597 4 Errors. Could not locate output file C:\Documents and Settings\user\Pulpit\dbmod_1.0.amx (compile failed).
KOD ::
public add_grenade_bonus(id,attacker_id,weapon)
{
if (player_b_grenade[attacker_id] > 0 && weapon == CSW_HEGRENADE && player_b_fireshield[id] == 0 && player_item_name[id] != "M'avina's Battle Hymn" && player_item_name[id] != "Cow King's Leathers" && player_item_name[id] != "Sługa inferno"); //Fireshield check
{
new roll = random_num(1,player_b_grenade[attacker_id])
if (roll == 1)
{
set_user_health(id, 0)
message_begin( MSG_ALL, gmsgDeathMsg,{0,0,0},0)
write_byte(attacker_id)
write_byte(id)
write_byte(0)
write_string("grenade")
message_end()
set_user_frags(attacker_id, get_user_frags(attacker_id)+1)
set_user_frags(id, get_user_frags(id)+1)
cs_set_user_money(attacker_id, cs_get_user_money(attacker_id)+150)
}
}
}