[ERROR] Command
#10

pawn Код:
if ( !strcmp ( cmd, "/changepass", true ) )
    {
        if(logged[playerid] == 0)
        {
            SendClientMessage(playerid, COLOR_RED, "SERVER: You Are Not Logged In");
            return 1;
        }
        tmp = strtok(cmdtext,idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /changepass [password]");
            return 1;
        }
        if(logged[playerid] == 1)
        {
            dini_IntSet(udb_encode(playername), "password", udb_hash(tmp));
            format(string, sizeof(string), "You have successfully changed your password to %s. Dont forget it!", tmp);
            SendClientMessage(playerid, COLOR_GREEN, string);
        }
        return 1;
    }
Reply


Messages In This Thread
[ERROR] Command - by geerdinho8 - 29.04.2010, 14:10
Re: Strange bug - by geerdinho8 - 29.04.2010, 14:29
Re: Strange bug - by geerdinho8 - 29.04.2010, 14:45
Re: [ERROR] Command - by MadeMan - 29.04.2010, 14:48
Re: [ERROR] Command - by geerdinho8 - 29.04.2010, 14:58
Re: [ERROR] Command - by geerdinho8 - 29.04.2010, 15:04
Re: [ERROR] Command - by [MWR]Blood - 29.04.2010, 15:05
Re: [ERROR] Command - by geerdinho8 - 29.04.2010, 15:21
Re: [ERROR] Command - by geerdinho8 - 29.04.2010, 16:02
Re: [ERROR] Command - by MadeMan - 29.04.2010, 16:11

Forum Jump:


Users browsing this thread: 1 Guest(s)