Change password
#6

Quote:
Originally Posted by _GHT_MarK445
Посмотреть сообщение
I just want to ask, how can i insert IF, for password length. For example from 3 to 15 characters, thank you guys!
Then write it like this:

Код:
CMD:changepw(playerid, params[]) {
    if(!params[0]) return SendClientMessage(playerid,-1,"Please enter a password!");
    if(!(2 < strlen(params) < 16)) return SendClientMessage(playerid,-1,"Your password must be longer then 3 and smaller then 15 chars!");
    new INI:File = INI_Open(UserPath(playerid));
    INI_SetTag(File,"data");
    INI_WriteInt(File,"Password",udb_hash(params));
    INI_Close(File);
    return SendClientMessage(playerid,-1,"Password changed successfully!");
}
Greekz
Reply


Messages In This Thread
Change password - by _GHT_MarK445 - 11.03.2015, 15:46
AW: Change password - by Kaliber - 11.03.2015, 15:52
Respuesta: AW: Change password - by JuanStone - 11.03.2015, 16:04
AW: Respuesta: AW: Change password - by Kaliber - 11.03.2015, 16:07
Re: Change password - by _GHT_MarK445 - 11.03.2015, 16:14
AW: Re: Change password - by Kaliber - 11.03.2015, 16:15
Re: Change password - by _GHT_MarK445 - 11.03.2015, 16:18
AW: Change password - by Kaliber - 11.03.2015, 16:23
Respuesta: Change password - by JuanStone - 11.03.2015, 16:31
AW: Respuesta: Change password - by Kaliber - 11.03.2015, 16:33

Forum Jump:


Users browsing this thread: 2 Guest(s)