Help me about key
#1

How I can get password throught the key?
Код HTML:
stock g_mysql_AccountLoginCheck(playerid)
{
	ShowNoticeGUIFrame(playerid, 2);

	new string[128];

	format(string, sizeof(string), "SELECT `Username`,`Key`,`Email` from accounts WHERE Username = '%s'", GetPlayerNameExt(playerid));
	mysql_function_query(MainPipeline, string, true, "OnQueryFinish", "iii", LOGIN_THREAD, playerid, g_arrQueryHandle{playerid});
	return 1;
}
And there is key I get in sql
344907E89B981CAF221D05F597EB57A6AF408F15F4DD7895BB D1B96A2938EC24A7DCF23ACB94ECE0B6D7B0640358BC56BDB4 48194B9305311AFF038A834A079F
Reply
#2

Under "OnQueryFinish" function
pawn Код:
new rows, fields;
cache_get_data(rows, fields);
if(rows)
{
    cache_get_field_content(0, "Key", PlayerInfo[playerid][Key] //or the key's variable you have got//,   here's connection handle(user = root and db = etc etctet c, 128  cells of key);
    // Here tell player he's registered and show him the login dialog.
}
return 1;
Код:
 cache_get_field_content(row, field[], destination, connectionHandle[], max_len = sizeof(
Reply
#3

so what the password of this key
344907E89B981CAF221D05F597EB57A6AF408F15F4DD7895BB D1B96A2938EC24A7DCF23ACB94ECE0B6D7B0640358BC56BDB4 48194B9305311AFF038A834A079F
sorry i'm newbie
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)