[Problem] /Skin cmd help please
#7

Use this:

Add this at the top of OnPlayerCommandText:
pawn Код:
new cmd[128];
cmd = strtok(cmdtext, idx);
then:
pawn Код:
if (strcmp(cmd, "/skin", true) == 0)
        {
        new tmp[256];
        tmp = strtok (cmdtext, idx);
        skinid = strval(tmp);
    if(IsPlayerInRangeOfPoint(playerid,10,198.9780,-127.8640,1003.5152))
    {      
            if(!strlen(tmp)) // Removed ! at TMP. ! means NOT. so !strlen = NOT strlen.
            SendClientMessage(playerid, COLOR_RED, "USAGE: /skin [ID]");
            return 1; // If you won't return, it will continue the script.
             }
             SetPlayerSkin(playerid, skin);
             SendClientMessage(playerid, COLOR_GREEN, "Your skin has been successfully changed!");
             return 1;
             }
            else
             }
            SendClientMessage(playerid, COLOR_RED, "You must be in the clothing store.");
            return 1;
       }
    }
Getting 26 errors? Add an extra brace '}' at the end of this script.

@Anthony
Stop posting crap.

@The post below me
That's also crap mate, that script 100% fails.
Reply


Messages In This Thread
[Problem] /Skin cmd help please - by XoSarahMoX - 20.11.2010, 18:02
Re: [Problem] /Skin cmd help please - by [NWA]Hannes - 20.11.2010, 19:21
Re: [Problem] /Skin cmd help please - by XoSarahMoX - 20.11.2010, 20:01
Re: [Problem] /Skin cmd help please - by Jay. - 20.11.2010, 20:03
Re: [Problem] /Skin cmd help please - by TheArcher - 20.11.2010, 20:06
Re: [Problem] /Skin cmd help please - by XoSarahMoX - 20.11.2010, 20:15
Re: [Problem] /Skin cmd help please - by Biesmen - 20.11.2010, 20:25
Re: [Problem] /Skin cmd help please - by [NWA]Hannes - 20.11.2010, 20:26

Forum Jump:


Users browsing this thread: 2 Guest(s)