22.08.2013, 03:36
I made a function to turn md5 hashes like 5D41402ABC4B2A76B9719D911017C592 to 5d41402abc4b2a76b9719d911017c592.
Essentially all it does it make it lowercase. For some reason though, its making funky things like this: И””Ђ
Heres the function and the string in which i call it.
Final Query: [23:09:23] CMySQLHandler::Query(SELECT * FROM `users` WHERE `username` = 'Whatcha' AND `password` = 'И””Ђ' LIMIT 1) - Successfully executed.
Essentially all it does it make it lowercase. For some reason though, its making funky things like this: И””Ђ
Heres the function and the string in which i call it.
pawn Код:
stock Lowercase(text[])
{
for(new i; i< 32; i++)
{
text[i] = tolower(text[i]);
}
return text;
}
format(query,sizeof(query),"SELECT * FROM `users` WHERE `username` = '%s' AND `password` = '%s' LIMIT 1",PlayerName(playerid),Lowercase(MD5_Hash(string)));