16.01.2016, 22:36
In command before that you have one more "}"
You have:
but you need to delete one "}":
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; }
Код:
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; }