A little problem with /setskin
#1

I have compiled a /setskin command, but when I get IG i type /setskin [id] [skin] and it just says "You changed ...'s skin to ..." but my skin isn't changed. Here, the cmd:

pawn Код:
dcmd_setskin(playerid, params[])
{
    new pID, pName[MAX_PLAYER_NAME], string[128], value;
    if(sscanf(params, "ui", pID, value)) return SendClientMessage(playerid, COLOR_GOLD, "/setskin [playerid] [skinid]");
    else if(PlayerInfo[playerid][AdminLevel] <= 3) return SendClientMessage(playerid, COLOR_RED, "You have no acces to this comamnd");
    else if(pID == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREEN, "Player Not Found");
    else
    {
        GetPlayerSkin(pID);
        GetPlayerName(pID, pName, MAX_PLAYER_NAME);
        format(string, sizeof(string), "You changed (%i) %s's skin to %i", pID, pName, value);
        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    }
    return 1;
}
When I compile it shows no error. Any help?!
Reply


Messages In This Thread
A little problem with /setskin - by Rivera - 18.03.2011, 15:42
Re: A little problem with /setskin - by antonio112 - 18.03.2011, 15:44
Re: A little problem with /setskin - by Rivera - 18.03.2011, 15:47
Re: A little problem with /setskin - by Rivera - 18.03.2011, 15:55
Re: A little problem with /setskin - by Hashski - 18.03.2011, 15:59
Re: A little problem with /setskin - by Sascha - 18.03.2011, 16:00

Forum Jump:


Users browsing this thread: 1 Guest(s)