Quick command help needed. [/fixveh]
#4

Код:
if (strcmp("/fv", cmdtext, true, 10) == 0)
     {
           new VehicleID = GetPlayerVehicleID(playerid);
           RepairVehicle(VehicleID);
           SetVehicleHealth(VehicleID, 1000);
           IsPlayerInVehicle(playerid, vehicleid); // heres the error.
           SendClientMessage(playerid,COLOR_NAVY,"VEHICLE: Your vehicle has been fully repaired.");
           else SendClientMessage(playerid,COLOR_NAVY,"VEHICLE: You must be in a vehicle to repair.");
           return 1;
     }
Since Pawno is case-sensitive, you needed to type "VehicleID" because thats the one you defined, instead of vehicleid. Maybe that wasnt the only one error, im not on my laptop so i cant check
Reply


Messages In This Thread
Quick command help needed. [/fixveh] - by Kyle. - 20.01.2011, 01:40
Re: Quick command help needed. [/fixveh] - by iMonk3y - 20.01.2011, 01:52
Re: Quick command help needed. [/fixveh] - by Kyle. - 20.01.2011, 01:58
Re: Quick command help needed. [/fixveh] - by MMiz - 20.01.2011, 07:12

Forum Jump:


Users browsing this thread: 1 Guest(s)