MySQL ReturnPassword
#1

Please convert to MySQL BlueG. Thank you for your help.
Код:
stock MySQL_ReturnPassword(nick[])
{
	new string[128], key[64];
	
	format(string, sizeof(string), "SELECT `Key` FROM `accounts` WHERE `Nickname` = '%s'", nick);

	mysql_query(string);
	mysql_store_result();
	
	if(mysql_retrieve_row())
	{
		mysql_fetch_field_row(key, "Key");
	}
	
	mysql_free_result();
	
	return key;
}
Reply
#2

Do not try to convert to BlueG's mysql plugin line by line. The result will be non-threaded queries and generally bad design.

Rather re-write the script using threaded queries. You have to understand how it works or else you are going to ask others to write code for you every single time.

Wiki for MySQL R40 and above: https://sampwiki.blast.hk/wiki/MySQL
Example script: https://raw.githubusercontent.com/pB...stem-cache.pwn

Study it, write a mini-script to test your skills and ask for anything you do not understand. This is how you learn.
Reply
#3

I do not understand this BlueG. I will have to use StrickenKid...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)