well...
this is my first time coding and now i need help
Code:
public weaponChange(id) {
if (get_cvar_num("amx_claws"))
(get_user_flags(id)) {
{
new clip, ammo, wpnid = get_user_weapon(id,clip,ammo)
if (wpnid == CSW_KNIFE) {
entity_set_string(id, EV_SZ_viewmodel, "claws.mdl")
}
}
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T) {
cs_set_user_model(id, "claws")
}
else {
cs_reset_user_model(id)
}
}
when i try to compile it
it gives me 2 error messages
first one is on the 3rd line and it says that it has no arrays or too many subscripts
the 2nd error is on like 4 about loose indentation
thxs in advance
__________________