AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   (OLD) Bug Reports (https://forums.alliedmods.net/forumdisplay.php?f=48)
-   -   Problem with Magneto (https://forums.alliedmods.net/showthread.php?t=49365)

StevnJ9971 01-02-2007 14:49

Problem with Magneto
 
Code:

L 01/02/2007 - 10:55:54: Invalid player id 108
L 01/02/2007 - 10:55:54: [AMXX] Displaying debug trace (plugin "sh_magneto.amxx"
)
L 01/02/2007 - 10:55:54: [AMXX] Run time error 10: native error (native "get_use
r_weapons")
L 01/02/2007 - 10:55:54: [AMXX]    [0] sh_magneto.sma::magneto_disarm (line 120)

L 01/02/2007 - 10:55:54: [AMXX]    [1] sh_magneto.sma::magneto_damage (line 99)

Not sure what's wrong...

StevnJ9971 01-02-2007 14:55

Re: Problem with Magneto
 
And apparently now there's more:
Code:

L 01/02/2007 - 10:59:52: [ENGINE] Invalid entity 194
L 01/02/2007 - 10:59:52: [AMXX] Displaying debug trace (plugin "sh_magneto.amxx"
)
L 01/02/2007 - 10:59:52: [AMXX] Run time error 10: native error (native "entity_
get_vector")
L 01/02/2007 - 10:59:52: [AMXX]    [0] Vexd_Utilities.inc::Entvars_Get_Vector (l
ine 28)
L 01/02/2007 - 10:59:52: [AMXX]    [1] sh_magneto.sma::magneto_disarm (line 113)

L 01/02/2007 - 10:59:52: [AMXX]    [2] sh_magneto.sma::magneto_damage (line 99)


Sidewinder 01-02-2007 14:56

Re: Problem with Magneto
 
is that with amxx 1.76c?

StevnJ9971 01-02-2007 15:17

Re: Problem with Magneto
 
Yes.

vittu 01-10-2007 21:37

Re: Problem with Magneto
 
Add
Code:

if ( !is_user_alive(victim) ) return
just after line 110, will fix both problems.

Should add is_user_alive check line 92 also to avoid using magneto against dead clients.

-moving to bug reports. Please reply if any further issues after fix above.


All times are GMT -4. The time now is 03:20.

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