Code:
new ent[33] = 0;
// . . .
public makeEnt(id) {
ent[id] = create_entity("info_target");
set_task(3.0,"delEnt",id);
return PLUGIN_HANDLED;
}
public delEnt(id) {
new entid = ent[id]; // Error here (index out of bounds)
remove_entitiy(entid);
return PLUGIN_HANDLED;
}
I just cannot figure this out...Because entid and ent[id] should both be able to store a number. The index out of bounds error is most likely being cause by the ent[id], I cannot explain why.[/small]
__________________