/repair Commad help
#1

Hello,

today I've scripted a repair command for mechanics. If I go ingame and drive a towtruck it always says

Quote:

You are not driving a Towtruck

even if I do.

code:
Quote:

for(new i=0; i < sizeof(MechanicVEH); i++)
{
if(GetPlayerVehicleID(playerid) != MechanicVEH[i]) return SendClientMessage(playerid, COLOR_GREY, "You are not driving a Towtruck.");
}

MechanicVEH = towtruck

Thanks for your help
Reply
#2

pawn Код:
for(new i=0; i < sizeof(MechanicVEH); i++)
{
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 252) return SendClientMessage(playerid, COLOR_GREY, "You are not driving a Towtruck.");
}
Try using this.

EDITED: Try again.
Reply
#3

Didn't work
Reply
#4

Try my command again, I edited it and if that does not work, remove the loop.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)