HELP : mySQL (BlueG) changenick Problem.
#1

hello how can i check with mySQL if the nick chosen is exists?
because this way is not working :
(if someone can also tell me why this way isnt working, please fix me thanks!)
PHP код:
new rows,fields;
format(db,sizeof(db),"SELECT * FROM accounts WHERE username='%s'",newnick);
mysql_function_query(Handle,db,false,"","");
cache_get_data(rows,fields,Handle);
if(
rows != 0) return SendClientMessage(playerid,-1,"NICK IS ALREADY TAKEN"):
if(
rows == 0) return SendClientMessage(playerid,-1,"NICK IS AVAILABLE"); 
With alot thanks, Equality.
Reply


Messages In This Thread
HELP : mySQL (BlueG) changenick Problem. - by Equality - 22.06.2014, 22:43
Re: HELP : mySQL (BlueG) changenick Problem. - by Equality - 23.06.2014, 05:33
Re: HELP : mySQL (BlueG) changenick Problem. - by Equality - 23.06.2014, 12:32
Re: HELP : mySQL (BlueG) changenick Problem. - by Equality - 23.06.2014, 16:41

Forum Jump:


Users browsing this thread: 1 Guest(s)