Tuna Posted September 15, 2010 Share Posted September 15, 2010 While bugtracker is down. Basically, when you open admin spectate there are 4 events that get handled, and 4 when you close spectate. If you close spectate and then open it again, you'll get an annoying debug error because one event is still being handled. This is because when closed the wrong event is removed: --Opened: addEventHandler ( "onClientPlayerWasted", _root, aSpectator.PlayerCheck ) addEventHandler ( "onClientPlayerQuit", _root, aSpectator.PlayerCheck ) addEventHandler ( "onClientCursorMove", _root, aSpectator.CursorMove ) addEventHandler ( "onClientRender", _root, aSpectator.Render ) --Closed: removeEventHandler ( "onClientPlayerWasted", _root, aSpectator.PlayerCheck ) removeEventHandler ( "onClientPlayerQuit", _root, aSpectator.PlayerCheck ) removeEventHandler ( "onClientMouseMove", _root, aSpectator.CursorMove ) --Just needs to be made "onClientCursorMove" removeEventHandler ( "onClientRender", _root, aSpectator.Render ) For somebody who can commit to mtasa-resource: http://tunaftw.com/adminspectate.patch.zip Remove the .zip once you've downloaded to get the patch file (my server didn't like .patch) Link to comment
Fabio(GNR) Posted September 27, 2010 Share Posted September 27, 2010 (edited) Uhm how to install?? put the .patch file in the resource folder??? Edited September 27, 2010 by Guest Link to comment
dzek (varez) Posted September 27, 2010 Share Posted September 27, 2010 find these lines in admin script, and follow the comment on line 11 (replace onClientMouseMove with onClientCursorMove) Link to comment
Fabio(GNR) Posted September 27, 2010 Share Posted September 27, 2010 find these lines in admin script, and follow the comment on line 11 (replace onClientMouseMove with onClientCursorMove) Ok, thanks, (bit offtopic) But how to install the rotOrderpatch? http://bugs.mtasa.com/print_bug_page.php?bug_id=4609 Link to comment
dzek (varez) Posted September 27, 2010 Share Posted September 27, 2010 Date Submitted: 2009-07-10 22:44 I think it's already applied. Link to comment
Fabio(GNR) Posted September 27, 2010 Share Posted September 27, 2010 Date Submitted: 2009-07-10 22:44 I think it's already applied. Oh, but sometime;s my objects still rotate weird, but it's ok Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now