AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Invalid entity (https://forums.alliedmods.net/showthread.php?t=278452)

wicho 02-01-2016 02:01

Invalid entity
 
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..

Arkshine 02-01-2016 03:03

Re: Invalid entity
 
Sorry about that, it's a side-effect of a fix for something else. We need to remove such checks in some natives. Meanwhile, I can suggest you to use the fakemeta version.


All times are GMT -4. The time now is 09:31.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.