Little help.
#1

Alright, the problem is this: I have a /skin command with the ID's of 1-6. So it would be like this:

/skin 4

But when I do that, it does nothing. But when I do /skin with nothing after it it sets a skin to a Cadet (As I set up in the command). Here is the command, if anyone can help me please.


pawn Код:
command(skin, playerid, params[])
{
    new text;
    if(sscanf(params,"d",text))
    if(Player[playerid][Group] == 4)
    {
        switch(text)
        {
            case 0:
            {
                if(Player[playerid][Group] == 4)
                {
                    SetPlayerSkin(playerid, 71);
                }
            }
            case 1:
            {
                if(Player[playerid][Group] == 4)
                {
                    SetPlayerSkin(playerid, 141);
                }
            }
            case 2:
            {
                if(Player[playerid][Group] == 4)
                {
                    SetPlayerSkin(playerid, 187);
                }
            }
            case 3:
            {
                if(Player[playerid][Group] == 4)
                {
                    SetPlayerSkin(playerid, 70);
                }
            }
            case 4:
            {
                if(Player[playerid][Group] == 4)
                {
                    SetPlayerSkin(playerid, 165);
                }
            }
            case 5:
            {
                if(Player[playerid][Group] == 4)
                {
                    SetPlayerSkin(playerid, 166);
                }
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Little help. - by iGetty - 11.10.2011, 15:45
Re: Little help. - by LetsOWN[PL] - 11.10.2011, 15:50
Re: Little help. - by iGetty - 11.10.2011, 15:52
Re: Little help. - by aRoach - 11.10.2011, 15:56
Re: Little help. - by LetsOWN[PL] - 11.10.2011, 15:59
Re: Little help. - by iGetty - 11.10.2011, 16:01
Re: Little help. - by LetsOWN[PL] - 11.10.2011, 16:02

Forum Jump:


Users browsing this thread: 1 Guest(s)