[Help]2 Errors 1 Warning Can you help me?:)
#4

Quote:
Originally Posted by MadeMan
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/startdeliver", cmdtext, true) == 0)
    {
        new VehicleID = GetPlayerVehicleID(playerid);
        if(VehicleID == cardel1)
        {
            SetPlayerCheckpoint(playerid, cardelckp1, 3.0);
            cardeljob1 = 1;
            GameTextForPlayer(playerid, "~g~Started The Deliver, Good Luck!", 3000, 3);
            new name[MAX_PLAYER_NAME], string[48];
            GetPlayerName(playerid, name, sizeof(name));
            format(string, sizeof(string), "%s I Deliver A Car.", name );
            SendClientMessageToAll(0xF60000F6, string);
            return 1;
        }
        SendClientMessage(playerid, 0xF60000F6,"You Have To Be In The Car to Start The Deliver");
    }

    if (strcmp("/deliverinfo", cmdtext, true) == 0)
    {
        if (IsPlayerInRangeOfPoint(playerid, 7.0,cardelckp1))
        {
            SendClientMessage(playerid, 0xF6F600F6, "Deliver Location: Las Venturas.");
            SendClientMessage(playerid, 0xF6F600F6, "Deliver Reward 1000$.");
        }
        return 1;
    }
    return 0;
}
You had a bracket missing.
thank you
Reply


Messages In This Thread
[Help]2 Errors 1 Warning Can you help me?:) - by eDz0r - 29.04.2010, 19:45
Re: [Help]2 Errors 1 Warning Can you help me?:) - by MadeMan - 29.04.2010, 19:50
Re: [Help]2 Errors 1 Warning Can you help me?:) - by biltong - 29.04.2010, 19:56
Re: [Help]2 Errors 1 Warning Can you help me?:) - by eDz0r - 30.04.2010, 11:36

Forum Jump:


Users browsing this thread: 2 Guest(s)