/changepassword problem
#2

Seems that you have missed a closing bracket, check this out:
pawn Код:
if(strcmp(cmd,"/changepassword",true) == 0)
{
    if (adminlevel[playerid] >= 4)
    {
        new id = -1;
        id = strval(strtok(cmdtext,idx));
        new password[100];
        password = strtok(cmdtext,idx);
        if strval(password) == 0)return SendClientMessage(playerid,~0,"Usage: /changepassword [playerid] [new password]");
        new playername[24];GetPlayerName(id,playername,40);
        format(playername, 40, "%s",playername);
        dini_IntSet(udb_encode(playername), "password", udb_hash(password));
        SendClientMessage(playerid,~0,"Password successeful changed!");
    }
    return 1;
}
Reply


Messages In This Thread
/changepassword problem - by Face9000 - 29.12.2011, 17:28
Re: /changepassword problem - by Norck - 29.12.2011, 17:31
Re: /changepassword problem - by Face9000 - 29.12.2011, 17:43
Re: /changepassword problem - by Norck - 29.12.2011, 17:57
Re: /changepassword problem - by Face9000 - 29.12.2011, 18:05

Forum Jump:


Users browsing this thread: 1 Guest(s)