mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

debugscript behavior needs tweaking

Open ds1-e opened this issue 8 months ago • 0 comments

Describe the bug

Currently debugscript doesn't behave accordingly to it's description:

debugscript: Modes available are 0 (None), 1 (Errors), 2 (Errors + Warnings), 3 (All)

As of now it checks whether debug level of player is equal or higher than debug level of message. Do note that outputDebugString makes use of levels from 0 to 4. Moreover, client seems to miss relevant checks; by having /debugscript set to 1 all of client-side debug messages would be displayed, but it should display errors only.

Steps to reproduce

Play around with outputDebugString and /debugscript

Version

No response

Additional context

No response

Relevant log output

No response

Security Policy

  • [X] I have read and understood the Security Policy and this issue is not security related.

ds1-e avatar Jun 20 '24 16:06 ds1-e