17.07.2018, 13:26
Oh, of course, I see what an issue is, you are doing query wrong!
Here you trying to fetch code based on user's name, but you're sending player's id instead of player's name
That is why you getting nothing back from db
Код:
mysql_format(SQL, string, sizeof(string), "SELECT `code` FROM `users` WHERE `name`='%e' LIMIT 1", playerid);
That is why you getting nothing back from db