ZCMD helP!
#3

pawn Код:
CMD:setname(playerid, params[]);
{
        new pName[MAX_PLAYER_NAME]
        tmp = strtok(cmdtext, idx);
        giveplayerid = ReturnUser(tmp);
        if(PlayerInfo[playerid][Admin] >= 3)
        {
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, 0xFF0000AA, "USAGE: /setname [ID] [Name]");
                return 1;
            }
            else
            {
                if(sscanf(params, "ui", giveplayerid, pName))
                {
                    SetPlayerName(giveplayerid, pName);
                    return 1;
                }
            }
        else
        {
            SendClientMessage(playerid, 0xFF0000AA, "You are not an Admin!");
            return 1;
        }
        return 1;
    }
Maybe the bracket was messing it up.
Reply


Messages In This Thread
ZCMD helP! - by Sal - 05.03.2012, 05:58
Re: ZCMD helP! - by Sal - 05.03.2012, 06:05
Re: ZCMD helP! - by rangerxxll - 05.03.2012, 07:54
Re: ZCMD helP! - by Jack_Wilson - 05.03.2012, 07:56
Re: ZCMD helP! - by fordawinzz - 05.03.2012, 12:11

Forum Jump:


Users browsing this thread: 1 Guest(s)