I am getting tons of long callback executions in my server logs, People told me the that I need to shorten my functions and optimize the code. This is one of the functions that also detects long callback execution. So I'm gonna need an example from this to fix the long execution. Hoping to get some help here.?
Code:
public OnPlayerExitVehicle(playerid, vehicleid)
{
? ? ? ? InCar[playerid] = 0;
? ? ? ? LastCar[playerid] = vehicleid;
? ? ? ? if(DeliveryMan[playerid])
? ? ? ? {
? ? ? ? ? ? for(new i; i<sizeof(BurritoSpawnInfo); i)
? ? ? ? ? ? {
? ? ? ? ? ? ? ? if(GetPlayerVehicleID(playerid) == Burrito_ID[i])
? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? SendClientMessage(playerid, COLOR_COURIER, "* Press Y behind your vehicle to pickup the goods.");? ?
? ? ? ? ? ? ? ? }? ?
? ? ? ? ? ? }
? ? ? ? ? ?
? ? ? ? }
? ? ? ? return 1;
}