You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Server doesn't check if given font in TextDrawFont (I assume it's the same for per player textdraws) is a valid font and providing one that's greater than 16 crashes the SA:MP client.
Expected behavior
Check the boundaries and in case they are invalid, show a message in the console and don't apply any action.
The function should also return false to indicate it failed.
Screenshots and/or logs
If applicable, add screenshots and/or log output to help explain your problem.
Fixed in #737
The behavior now is if you use a textdraw font higher than or equal to 16, or lower than 0, it falls back to textdraw font 0, and still returns true
Activity
set a fallback when textdraw font is invalid
AmyrAhmady commentedon Oct 12, 2023
Fixed in #737
The behavior now is if you use a textdraw font higher than or equal to 16, or lower than 0, it falls back to textdraw font 0, and still returns true