Help Fix These Error Codes?
#3

Put the defines above OnPlayerCommandText, aka - on top of your script.

Darnell, there's something wrong with '}' in your fix. Try this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (!strcmp("/myteam", cmdtext, true, 7))
    {
        if (pTeam[playerid] == team_Army)
        {
            SendClientMessage(playerid,COLOR_GREEN, "You are a bad guy");
        }
        else if (pTeam[playerid] == team_Fbi)
        {
            SendClientMessage(playerid,COLOR_GREEN, "You are a good guy");
        }
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
Help Fix These Error Codes? - by Bmxerlmao5288 - 11.06.2011, 21:10
Re: Help Fix These Error Codes? - by Darnell - 11.08.2011, 18:57
Re: Help Fix These Error Codes? - by Macluawn - 11.08.2011, 20:17

Forum Jump:


Users browsing this thread: 1 Guest(s)