this is what i got
Code:
public dontshoot(id)
{
if ( ! get_cvar_num("amx_camouflage") )
return PLUGIN_HANDLED
new index, bodypart, distance = 99999;
get_user_aiming(id, index, bodypart, distance);
if(is_user_connected(index) && is_user_alive(index))
{
if(get_user_team(id) != get_user_team(index))
{
// looking at enemy => check for camouflage
if(HasCamo[index] = true) // warning 211: possible unintended assigment
{
set_hudmessage(0, 0, 255, -1.0, -1.0, 0, 6.0, 7.0)
show_hudmessage(id, "He is a friend!\nDo not shoot!")
}
}
else
{
// not looking at enemy => do nothing
return PLUGIN_HANDLED
}
}
return PLUGIN_HANDLED
}
can someone tell me how to fix this warning?