I little bit search and in this
Quote:
Format(buffer, sizeof(buffer), "UPDATE mostactive SET last_accountuse = %d, playername = '%s',timeCT = '%i',timeTT = '%i', timeSPE = '%i',total = '%i' WHERE steamid = '%s';",GetTime(), SafeName, g_iPlayTimeCT[client],g_iPlayTimeT[client],g_iPlayTimeSpec[client],g_iPlayTimeCT[client]+g_iPlayTimeT[client]+g_iPlayTimeSpec[client], steamid);
|
I mean this
I mean this
Cannot be used for "Unicode" symbols (I think)
And then I got idea.. We can convert STEAM ID to STEAM Name.. I found some code
Quote:
// Get User Profile Data
$xml = @simplexml_load_file("http://steamcommunity.com/profiles/$steam64/?xml=1");
if(!empty($xml) && !isset($xml->error)) {
if( isset($xml->steamID) && $xml->steamID == "" )
$username = "Not Setup"; // Example: steamcommunity.com/profiles/76561198077095013/?xml=1
else
$username = $xml->steamID; // Example: steamcommunity.com/profiles/76561198077095031/?xml=1
}
else {
$username = "Not Found"; // Example: steamcommunity.com/profiles/0/?xml=1
}
echo "$username";
|
But then I test it and got some troubles because in menu first player is "Dulam" and he have on first line his steam id but his name is used for second line. In second line. Same in search
Lets see how this bug looks on main page
Lets see how this bug looks on search
How looks code before update?
https://pastebin.com/b5bpqYe8
How looks code after my bad update?
https://pastebin.com/yfhuimYd
Guys.. Please.. I know I do some mistakes in editing code but Iam not verry good at this and I only give you ideas how to fix this problem. After editing this code loading page is slower (maybe it must convert every steam id to name). But maybe it can do automatically every 10 minutes and paste it to database and page will take it from database (faster loading page). Or there is way how this fix in plugin to send unicode names...
Have a nice day guys..
__________________