Raised This Month: $ Target: $400
 0% 

plugin_flightmode2.sma runtime error 10


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
stupok
Veteran Member
Join Date: Feb 2006
Old 10-07-2006 , 18:49   plugin_flightmode2.sma runtime error 10
Reply With Quote #1

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.
Attached Files
File Type: sma Get Plugin or Get Source (plugin_flightmode2.sma - 691 views - 21.0 KB)
stupok is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 10-07-2006 , 23:39   Re: plugin_flightmode2.sma runtime error 10
Reply With Quote #2

Well it would really help to have the same file with line numbers to debug it correctly.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
stupok
Veteran Member
Join Date: Feb 2006
Old 10-08-2006 , 00:39   Re: plugin_flightmode2.sma runtime error 10
Reply With Quote #3

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 is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 10-09-2006 , 16:30   Re: plugin_flightmode2.sma runtime error 10
Reply With Quote #4

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.
stupok is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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