Please fix my code.
#6

In command before that you have one more "}"

You have:
Код:
if (strcmp("/bdelivery", cmdtext, true, 10) == 0)
	{
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 459)
      	{
      	    BankDeliveryJob[playerid] = 1;
            new name[MAX_PLAYER_NAME], string[48];
            GetPlayerName(playerid, name, sizeof(name));
            format(string, sizeof(string), "* %s is now a Bank Delivery boy.", name );
            SendClientMessageToAll(COLOR_YELLOW, string);
            SetPlayerCheckpoint(playerid,1212.9279,-1815.9828,16.5938,79);
			SendClientMessage(playerid,COLOR_YELLOW,"* Dave: You have been given the coordinates to the bank. Deliver it there.");
			return 1;
	    }
		SendClientMessage(playerid, COLOR_RED,"You have to be on a delivery truck to start the job!");
	}//THIS ONE YOU DONT NEED
return 1;
}
but you need to delete one "}":

Код:
if (strcmp("/bdelivery", cmdtext, true, 10) == 0)
	{
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 459)
      	{
      	    BankDeliveryJob[playerid] = 1;
            new name[MAX_PLAYER_NAME], string[48];
            GetPlayerName(playerid, name, sizeof(name));
            format(string, sizeof(string), "* %s is now a Bank Delivery boy.", name );
            SendClientMessageToAll(COLOR_YELLOW, string);
            SetPlayerCheckpoint(playerid,1212.9279,-1815.9828,16.5938,79);
			SendClientMessage(playerid,COLOR_YELLOW,"* Dave: You have been given the coordinates to the bank. Deliver it there.");
			return 1;
	    } else SendClientMessage(playerid, COLOR_RED,"You have to be on a delivery truck to start the job!");
            return 1;
}
Reply


Messages In This Thread
Please fix my code. - by NealPeteros - 16.01.2016, 13:32
Re: Please fix my code. - by Eth - 16.01.2016, 14:04
Re: Please fix my code. - by NealPeteros - 16.01.2016, 14:08
Re: Please fix my code. - by Eth - 16.01.2016, 14:12
Re: Please fix my code. - by NealPeteros - 16.01.2016, 22:26
Re: Please fix my code. - by TonyVk - 16.01.2016, 22:36
Re: Please fix my code. - by radiobizza - 16.01.2016, 22:36

Forum Jump:


Users browsing this thread: 1 Guest(s)