password
#1

why the password dose not change on the database

PHP код:
CMD:password(playerid,params[])
{
  new 
q[126], str[100], newpass[100];
  if(
sscanf(params"s[100]",newpass)) return SendClientMessage(playerid,Red,"Chnage password: /password <newpass>");
  
pdata[playerid][Password] = newpass;
  
mysql_format(Mysql,q,sizeof(q),"UPDTAE `players` SET `Password` = %s WHERE `ID` =%d",pdata[playerid][Password],pdata[playerid][ID]);
  
format(str,sizeof(str),"Password has been change to <%s>",newpass);
  
SendClientMessage(playerid,Red,str);
  return 
1;

Reply


Messages In This Thread
password - by BoU3A - 08.12.2014, 06:25
Re: password - by M4D - 08.12.2014, 06:58
Re: password - by JeaSon - 08.12.2014, 07:01
Re: password - by BoU3A - 08.12.2014, 07:06
Re: password - by Vince - 08.12.2014, 08:16
Re: password - by Doller - 08.12.2014, 08:23

Forum Jump:


Users browsing this thread: 2 Guest(s)