HELP : mySQL (BlueG) changenick Problem. - 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 : mySQL (BlueG) changenick Problem. (
/showthread.php?tid=521391)
HELP : mySQL (BlueG) changenick Problem. -
Equality - 22.06.2014
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.
Re: HELP : mySQL (BlueG) changenick Problem. -
Equality - 23.06.2014
הקפצה
Re: HELP : mySQL (BlueG) changenick Problem. -
Equality - 23.06.2014
הקפצה
Re: HELP : mySQL (BlueG) changenick Problem. -
Equality - 23.06.2014
BUMP
PLEASE HELP GUYS...