Whats wrong?
#8

Well, besides the clearness that you're not actually using "idx" and from what it seems you already have it defined somewhere.


pawn Код:
command(settalk, playerid, idx, cmdtext, params [])
{
    if(IsPlayerConnected(playerid))
    {
        new settalk[128];
        settalk = strtok(idx, cmdtext);
        if(!strlen(settalk))
        {
            SendClientMessage(playerid, WHITE, "USAGE: /settalk 1-5");
            return 1;
        }
        else if(strcmp(settalk,"1", true) == 0)
        {
            settalk1[playerid] = 1;
            SendClientMessage(playerid, WHITE, " Chat style has been set!");
        }
    }
    return 1;
}
That should be your indentation fixed.

Show the line that your mismatch is on. Makes it easier to slove.

Edit:

Sat and done this:
pawn Код:
new talktype[4][MAX_PLAYERS];
new cmdtext[128];
new idx;
command(settalk, playerid, params [])
{
    if(IsPlayerConnected(playerid))
    {
        new settalk[128];
        settalk = strtok(cmdtext, idx);
        if(!strlen(settalk))
        {
            SendClientMessage(playerid, WHITE, "USAGE: /settalk 1-5");
            return 1;
        }
        else if(strcmp(settalk,"1", true) == 0)
        {
            talktype[0][playerid] = 1;
            SendClientMessage(playerid, WHITE, " Chat style has been set!");
        }
    }
    return 1;
}
Reply


Messages In This Thread
Whats wrong? - by Tutrix - 16.12.2010, 22:09
Re: Whats wrong? - by Tutrix - 17.12.2010, 05:28
Re: Whats wrong? - by XePloiT - 17.12.2010, 05:39
Re: Whats wrong? - by Tutrix - 17.12.2010, 08:09
Re: Whats wrong? - by Tutrix - 17.12.2010, 12:37
Re: Whats wrong? - by Kaylux - 17.12.2010, 13:12
Re: Whats wrong? - by Tutrix - 17.12.2010, 13:27
Re: Whats wrong? - by Kaylux - 17.12.2010, 13:41
Re: Whats wrong? - by Tutrix - 17.12.2010, 14:10
Re: Whats wrong? - by Kaylux - 17.12.2010, 14:38

Forum Jump:


Users browsing this thread: 1 Guest(s)