SA-MP Forums Archive
Help me about key - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me about key (/showthread.php?tid=530309)



Help me about key - hackerkiller - 06.08.2014

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


Re: Help me about key - Sawalha - 06.08.2014

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(



Re: Help me about key - hackerkiller - 06.08.2014

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