AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Player is invalid ent?? (https://forums.alliedmods.net/showthread.php?t=128357)

Mini_Midget 05-31-2010 08:26

Player is invalid ent??
 
1 Attachment(s)
I'm not too sure why I'm getting this error at all to be honest.

I haven't coded in AMXX for a long time and forgot heaps of things so any help would be grateful!.

Code:

L 05/31/2010 - 23:35:55: [FAKEMETA] Invalid entity
L 05/31/2010 - 23:35:55: [AMXX] Displaying debug trace (plugin "zombie_swarm.amxx")
L 05/31/2010 - 23:35:55: [AMXX] Run time error 10: native error (native "engfunc")
L 05/31/2010 - 23:35:55: [AMXX]    [0] zombie_swarm.sma::fm_strip_user_weapons (line 1289)
L 05/31/2010 - 23:35:55: [AMXX]    [1] zombie_swarm.sma::give_weapons (line 615)
L 05/31/2010 - 23:35:55: [AMXX]    [2] zombie_swarm.sma::event_new_round (line 540)


drekes 05-31-2010 08:28

Re: Player is invalid ent??
 
Give us some code to work with

Mini_Midget 05-31-2010 09:02

Re: Player is invalid ent??
 
Code is 1000+ words and I'm not entirely sure where the problem or what the problem is. Thats why I just posted my whole script.

xPaw 05-31-2010 10:56

Re: Player is invalid ent??
 
I don't see any problem that can cause that because you check is_user_alive before stripping weapons

and ye, stop using those fm_ functions, use normal functions from fun modules (theres more in code)

Mini_Midget 06-01-2010 04:09

Re: Player is invalid ent??
 
Mmm... Strange... Used the fun module and it works fine but screwed up a few things (but wasn't hard to fix).


All times are GMT -4. The time now is 05:19.

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