multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.3k stars 412 forks source link

debugscript behavior needs tweaking #3498

Open srslyyyy opened 1 week ago

srslyyyy commented 1 week ago

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