Problem with errors
#1

OK hi i made a myskin command but it sned these errors

Код:
C:\Documents and Settings\user\Desktop\server samp\gamemodes\test.pwn(386) : error 017: undefined symbol "cmd"
C:\Documents and Settings\user\Desktop\server samp\gamemodes\test.pwn(389) : error 017: undefined symbol "strtok"
C:\Documents and Settings\user\Desktop\server samp\gamemodes\test.pwn(389) : error 033: array must be indexed (variable "tmp")
And thisi my skin command

Код:
if(strcmp(cmd, "/myskin", true) == 0)
    {
        new tmp[256];
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, 0xAA3333AA, "Usage: /myskin [skinid]");
            return 1;
        }
        new skin;
        skin = strval(tmp);
        new string[128];
        format(string, sizeof(string), "You change your skin to this skin ID: %d", skin);
        SendClientMessage(playerid, 0xFFFF00AA, string);
        SetPlayerSkin(playerid, skin);
        return 1;
Reply


Messages In This Thread
Problem with errors - by IvancheBG - 14.04.2011, 06:55
Re: Problem with errors - by Lorenc_ - 14.04.2011, 07:01
Re: Problem with errors - by IvancheBG - 14.04.2011, 07:32
Re: Problem with errors - by Cameltoe - 14.04.2011, 07:44
Re: Problem with errors - by IvancheBG - 14.04.2011, 07:46
Re: Problem with errors - by Cameltoe - 14.04.2011, 07:47
Re: Problem with errors - by IvancheBG - 14.04.2011, 07:56

Forum Jump:


Users browsing this thread: 2 Guest(s)