Thread: [Solved] Add XP/skill to players name
View Single Post
deprale
Senior Member
Join Date: Oct 2018
Location: Leeds
Old 01-22-2019 , 12:05   Re: Add XP/skill to players name
Reply With Quote #25

Quote:
Originally Posted by Airkish View Post
Did you set connection charset to utf8?

PHP Code:
SQL_SetCharset(g_SqlTuple,"utf8"); 
By reading the official CSS_STATS_SQL topic I have found that you MUST use 1.8.3> to be able to use utf8.

Quote:
Originally Posted by HamletEagle View Post
Sounds like a terrible solution.
What I meant by that, is that there are some people aware of that, and they do it on purpose, so I just ban them.
And by some things I have tried out I meant by checking their name on connect and if the char ascii number was higher than 128 I would simply just replace it with a space, didn't work at all, the worst solution I found is to make an enum of every single keystroke on my keyboard and loop through each of the char in the player's name to see if it was found, if not, replace it with an empty space, ofc I thought that would be the worst solution overall and that it wasn't practical because of the lag it would generate if let's say 10 people connect at once with illegal chars.
__________________

Last edited by deprale; 01-22-2019 at 12:09.
deprale is offline