/changepass YINI
#2

try this dude

Код:
CMD:password(playerid,params[])
{
      new Old[32],New[32],string[128];
      if(sscanf(params, "ss", old,new)) return SendClientMessage(playerid, CO_IVORY, "Command: /passowrd old new");
      else if(strlen(old) != pInfo[playerid][Your Pass Variable])) return SendClientMessage(playerid, CO_IVORY, "The old password is incorrect");
      else if(strlen(old) < 4 || strlen(old) > 32) return SCM(message with characters 4 - 10); 
      else if(strlen(old) == strlen(new)) SCM(message with old is new);
      else
      {
            new INI:File = INI_Open(YourPath(playerid));
            INI_SetTag(File,"Player Info");
            INI_WriteInt(File,"Password",new);
            INI_Close(File);
      }
      return 1;
}
Reply


Messages In This Thread
/changepass YINI - by Blackazur - 26.06.2013, 15:09
Re: /changepass YINI - by dEcooR - 26.06.2013, 15:29
AW: /changepass YINI - by Blackazur - 26.06.2013, 15:30
Re: /changepass YINI - by dEcooR - 26.06.2013, 15:35
AW: /changepass YINI - by Blackazur - 26.06.2013, 16:03
Re: /changepass YINI - by dEcooR - 26.06.2013, 16:08
AW: /changepass YINI - by Blackazur - 26.06.2013, 16:42
Re: /changepass YINI - by dEcooR - 26.06.2013, 16:46
Re: /changepass YINI - by Glad2BeHere - 26.06.2013, 16:55
AW: /changepass YINI - by Blackazur - 26.06.2013, 17:00
Re: /changepass YINI - by Glad2BeHere - 26.06.2013, 18:34
AW: /changepass YINI - by Blackazur - 26.06.2013, 18:37
Re: /changepass YINI - by Glad2BeHere - 26.06.2013, 18:42
AW: /changepass YINI - by Blackazur - 26.06.2013, 18:48
Re: /changepass YINI - by drichie - 27.06.2013, 06:54

Forum Jump:


Users browsing this thread: 2 Guest(s)