15.01.2015, 06:36
I dont think it's the issue here since it's not even called, but here you go:
pawn Код:
public TruckingCompleted(playerid)
{
new string[126];
new random_money = DropLoc[playerid][minPay]+random(DropLoc[playerid][maxPay]); //Random money based on minPay and maxPay in the array.
GameTextForPlayer(playerid, string, 3000, 3);
format(string, sizeof(string), "Truck Delivery Completed~n~~g~%s$", random_money);
GivePlayerMoney(playerid, random_money);
DestroyDynamicCP(DropoffCP[playerid]); //Destroys the checkpoint once delivery is completed.
return 1;
}