AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   plugin_flightmode2.sma runtime error 10 (https://forums.alliedmods.net/showthread.php?t=45631)

stupok 10-07-2006 18:49

plugin_flightmode2.sma runtime error 10
 
1 Attachment(s)
I put 'debug' after the entry in plugins.ini, here's the error:

Code:

[AMXX] Run time error 10: native error (native "set_user_gravity")
[AMXX]        [0] plugin_flightmode2.sma::stop_fly (line 72)
[AMXX]        [1] plugin_flightmode2.sma::user_fly (line 22)

It repeats hundreds of times, as long as a player is flying. However, it is worth noting that this doesn't happen every time I run the plugin. This error just comes up sometimes, and later can go away.

For your information, this is plugin_flightmode.sma without the CS specific functions, slightly modified by me, but the original plugin_flightmode.sma came up with the same error just on different lines.

SweatyBanana 10-07-2006 23:39

Re: plugin_flightmode2.sma runtime error 10
 
Well it would really help to have the same file with line numbers to debug it correctly.

stupok 10-08-2006 00:39

Re: plugin_flightmode2.sma runtime error 10
 
open it in AMXX-Studio, tada you have line numbers!

But... when I looked at it, neither 72 nor 22 actually had something pertaining to the plugin, 22 is in the comments section and 72 is a an empty line. And the error is obviously with set_user_gravity(), which is referenced twice in the plugin.

stupok 10-09-2006 16:30

Re: plugin_flightmode2.sma runtime error 10
 
I'd really appreciate some help fixing this plugin, because it gets annoying when the error pops up and writes hundreds of lines to my console and to the log files.

If I didn't provide enough information for you to help me fix the plugin, please tell me what extra info is necessary.

The plugin actually works fine, but the error comes up anyway. It's a plugin that allows players to "fly" or noclip (but not through walls) around and have a trail of sprites behind them.


All times are GMT -4. The time now is 04:58.

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