-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong Encode at AddServerRule #147
Comments
I have no idea what you are asking about. Show code. |
AddServerRule("Community", "Sampindo"); C will become # and D will become $ |
Only happend at Linux, not for windows |
Closing as not an YSF-related issue, as this is a SA-MP bug. Internally char *__cdecl sub_80A9190(char *s)
{
size_t v1; // eax@1
size_t v2; // ecx@1
v1 = strlen(s);
v2 = 0;
if ( v1 )
{
do
{
if ( (unsigned __int8)(s[v2] - 65) <= 25u )
s[v2] -= 32;
++v2;
}
while ( v1 > v2 );
}
return s;
} As can also be seen in the source code, it attempts to lowercase letters A - Z, but instead of adding 32, it subtracts it. The solution ‒ use lowercase, since console variables are supposed to be lowercase: AddServerRule("community", "Sampindo");
AddServerRule("discord", "https://discord.com/....");
AddServerRule("developer", "Angga"); |
On Windows, The C and D is work very well.
The text was updated successfully, but these errors were encountered: