• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Long callback execution
#6
When you create Burrito vehicles add flag for burito vehicle and store burito id if you need

Code:
for(new i; i < sizeof(Burrito_ID); i) { some_vehicle_global_var[Burrito_ID[i]]][isBurito] = true; some_vehicle_global_var[Burrito_ID[i]]][BuritoID] = i; }



Then you dont need loop

Code:
public OnPlayerExitVehicle(playerid, vehicleid) { InCar[playerid] = 0; LastCar[playerid] = vehicleid; if(DeliveryMan[playerid]) { if(some_vehicle_global_var[vehicleid][isBurito]){ SendClientMessage(playerid, COLOR_COURIER, "* Press Y behind your vehicle to pickup the goods."); } } return 1; }
  Reply


Messages In This Thread
Long callback execution - by Snow - 2021-05-02, 02:10 AM
RE: Long callback execution - by Y_Less - 2021-05-02, 07:29 PM
RE: Long callback execution - by kemper - 2021-05-02, 07:37 PM
RE: Long callback execution - by Y_Less - 2021-05-02, 11:32 PM
RE: Long callback execution - by Snow - 2021-05-03, 03:35 AM
RE: Long callback execution - by AbyssMorgan - 2021-05-03, 06:37 AM
RE: Long callback execution - by Y_Less - 2021-05-03, 01:19 PM
RE: Long callback execution - by Snow - 2021-05-03, 03:03 PM
RE: Long callback execution - by Y_Less - 2021-05-03, 03:48 PM
RE: Long callback execution - by Snow - 2021-05-03, 05:39 PM