Hi everybody, well I use the sandbags of larp but I have problems with removing the entity, the problem is that the entity never takes off in new round and I get this error:
L 01/31/2016 - 20:01:26: [ENGINE] Invalid entity 275
L 01/31/2016 - 20:01:26: [AMXX] Displaying debug trace (plugin "zp_extra_sandbags.amxx", version "1.1")
L 01/31/2016 - 20:01:26: [AMXX] Run time error 10: native error (native "find_ent_by_class")
L 01/31/2016 - 20:01:26: [AMXX] [0] zp_extra_sandbags.sma::event_newround (line 445)
PHP Code:
public event_newround()
{
new pallets = -1
while((pallets = find_ent_by_class(pallets, "amxx_pallets")) > 0) //this is the error line
{
remove_entity(pallets);
}
}
I use amx version 1.8.3-dev-git4990, can someone help me pls..