23.05.2012, 21:03
Quote:
Its not the destinations, its the number of arguments used in the CreateDynamicCP function. We'd have to see the CreateDynamicCP function in order to know how many parameters its looking for when you call it.
|
Howerer,here is:
pawn Код:
if(checkpointid == CPs[3])
{
if(IsATruck(GetPlayerVehicleID(playerid)))
{
if(truckloaded == 1)
{
SendClientMessage(playerid, yellow, "You've delivered the goods,and the company has paid you 1500$ for delivering them.");
GameTextForPlayer(playerid,"~g~Delivered completed! You received 1500$",4000,5);
GivePlayerMoney(playerid, 1500);
truckloaded = 0;
DisablePlayerCheckpoint(playerid);
}
else
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, yellow, "You have apparently lost your truck/van,and the trucking route has been cancelled.");
}
}
}