My origin cannot be a float, and it keeps giving me errors when I try to use float_to_str.
Code:
public item_c4_detonator() {
new arg[32]
read_argv(1,arg,31)
new id = str_to_num(arg)
for(new i=0;i<4;i++) {
new entid = find_ent_by_owner(id,"info_target",id)
new Float:origin[3]
entity_get_vector(entid,EV_VEC_origin,origin)
//get_brush_entity_origin(entid,vector)
new norigin[3]
float_to_str(Float:origin,norigin,3)
basic_explosion(norigin)
}
//format(origin,0,"%f",vector[0])
//format(origin,1,"%f",vector[1])
//format(origin,2,"%f",vector[2])
return PLUGIN_HANDLED
}
__________________