Setskin problem
#1

Hey i script this cmd but its not working

please help to fix it

pawn Код:
CMD:setmyskin(playerid,params[]) {
        new tmp[128], tmp2[128], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
        if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /setmyskin [ID]");
        new player1 = strval(tmp), skin = strval(tmp2),string[128];
        if(!IsValidSkin(skin)) return SendClientMessage(playerid, red, "ERROR: Invaild Skin ID");
        if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
            format(string,sizeof(string),"|- You have set your skin to %d -|", skin); SendClientMessage(playerid,yellow,string);
        return SetPlayerSkin(player1, skin);}
    return 1;}
Reply


Messages In This Thread
Setskin problem - by Crazyboobs - 28.06.2012, 14:03
Re: Setskin problem - by phillip875 - 28.06.2012, 14:08
Re: Setskin problem - by [MM]RoXoR[FS] - 28.06.2012, 14:10
Re: Setskin problem - by phillip875 - 28.06.2012, 14:11
Re: Setskin problem - by Strech - 28.06.2012, 18:12

Forum Jump:


Users browsing this thread: 2 Guest(s)