Wrong command
#1

Hi guys i've this cmd to change password on the server:

pawn Код:
if(strcmp(cmd, "/changepass", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(logged[playerid] == 0)
            {
                SendClientMessage(playerid, COLOR_RED, "You need to login before changing password.");
                return 1;
            }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_YELLOW, "Correct Usage: /changepass[password]");
                return 1;
            }
            dini_Get(udb_encode(playername), "Password");, tmp, 0, strlen(cmdtext), 255);
            OnPlayerUpdate(playerid);
           
            SendClientMessage(playerid, COLOR_YELLOW, "Password has been changed successfuly");
        }
        return 1;
    }
But it return me errors:

Код:
error 029: invalid expression, assumed zero
warning 215: expression has no effect
warning 215: expression has no effect
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Thanks.
Reply


Messages In This Thread
Wrong command - by Face9000 - 11.06.2011, 22:11
Re: Wrong command - by Face9000 - 12.06.2011, 14:25
Re: Wrong command - by L84S - 12.06.2011, 15:16
Re: Wrong command - by Bmxerlmao5288 - 12.06.2011, 15:20
Re: Wrong command - by Stigg - 12.06.2011, 15:35
Re: Wrong command - by Bmxerlmao5288 - 12.06.2011, 15:43
Re: Wrong command - by Stigg - 12.06.2011, 15:48
Re: Wrong command - by L84S - 12.06.2011, 16:26
Re: Wrong command - by Face9000 - 12.06.2011, 17:56

Forum Jump:


Users browsing this thread: 1 Guest(s)