ugh sorry for bothering again :| [SOLVED]
#2

Not enough brackets.

I use notepad++, because it auto identifies related brackets for you, so you never have this issue.

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/killme", cmdtext, true, 10) == 0) <---- line 62
    {
        SetPlayerHealth(playerid, 0.0);
        return 1;
    }
    if (strcmp("/rules", cmdtext, true, 10) == 0)
    {
      SendClientMessage(playerid,0x418630AA,"1. Respect everyone!");
      SendClientMessage(playerid,0x418630AA,"2. Do not teamkill!");
      SendClientMessage(playerid,0x418630AA,"3. Do not hack/bug abuse!");
      return 1;
    }
    if (strcmp("/objective", cmdtext, true, 10) == 0)
    {
    if(gTeam[playerid] == TEAM_CRACKHEAD)
    {
    SendClientMessage(playerid,0x418630AA,"Your objective is to kill the drug dealers");
    SendClientMessage(playerid,0x418630AA,"Get the crack from the top floor");
    SendClientMessage(playerid,0x41863AA,"You only have 20 minutes before the cops come!");
    }
    if(gTeam[playerid] == TEAM_DEFENDER)
    {
    SendClientMessage(playerid,0x41863AA,"Your Objective is to kill all the crackheads");
    SendClientMessage(playerid,0x41863AA,"And not to let them get your crack!");
    SendClientMessage(playerid,0x41863AA,"You only have 20 minutes before the cops come!");
    return 1;
    }
    } //<---- line 190 so line 191 doesn't exist >:/ closing bracket from if (strcmp("/objective"
    return SendClientMessage(playerid, 0x418630AA, "Command does not exist, read /commands for available commands");
}
Reply


Messages In This Thread
ugh sorry for bothering again :| [SOLVED] - by [Bm]rap45 - 13.02.2010, 07:22
Re: ugh sorry for bothering again :| - by mansonh - 13.02.2010, 07:24
Re: ugh sorry for bothering again :| - by [Bm]rap45 - 13.02.2010, 07:46
Re: ugh sorry for bothering again :| - by mansonh - 13.02.2010, 07:48
Re: ugh sorry for bothering again :| - by [Bm]rap45 - 13.02.2010, 07:50

Forum Jump:


Users browsing this thread: 3 Guest(s)