Help with my /stealfuel command please
#3

Quote:
Originally Posted by JaTochNietDan
Посмотреть сообщение
Count your brackets.

pawn Код:
public OnPlayerSpawn(playerid)
{
         SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 3.0);
} // That's one too extra, remove it
         return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
        GameTextForPlayer(playerid, "~r~/stealfuel",3000,5);
        SendClientMessage(playerid, RED, "Type /stealfuel To Start Stealing There Fuel!");
        }// You guessed it, remove it
        return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/stealfuel", cmdtext, true) == 0)
    {
        if (IsPlayerInCheckpoint(playerid))
        {
            SendClientMessage(playerid, RED, "Your Currently Stealing Fuel..Remain In The Checkpoint!");
            SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
        }
        else
        {
            SendClientMessage(playerid, RED, "You Have To Be In The Checkpoint To Steal Fuel!");
        }
    } // Missing one to close of the first if statement?
    return 1;
}
Thanks for the Tip..Ahh did you modify it at all?

EDIT:
Quote:

// Missing one to close of the first if statement?

i dont get that?? sometimes i get stupid errors and a brace fixes it :S
Reply


Messages In This Thread
Help with my /stealfuel command please - by <Weponz> - 24.10.2010, 10:41
Re: Help with my /stealfuel command please - by JaTochNietDan - 24.10.2010, 10:44
Re: Help with my /stealfuel command please - by <Weponz> - 24.10.2010, 10:47
Re: Help with my /stealfuel command please - by JaTochNietDan - 24.10.2010, 10:48
Re: Help with my /stealfuel command please - by <Weponz> - 24.10.2010, 10:51

Forum Jump:


Users browsing this thread: 1 Guest(s)