RepairVehicle(GetPlayerVehicleID(playerid)); ERROR I need Help
#1

I had this problem and I still cant fix plz help me

pawn Код:
:error 017: undefined symbol "RepairVehicle"
this is the script

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if (!strcmp("/repair", cmdtext))
  {
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle!");
    RepairVehicle(GetPlayerVehicleID(playerid));
    SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been successfully repaired!");
    return 1;
  }
}
thank you in advance
Reply
#2

pawn Код:
new vehicleid=GetPlayerVehicleID(playerid);
RepairVehicle(vehicleid);
Next time use [pawn] for PAWN(o) codes.
Reply
#3

im not sure what to do with that i replace it but it still has the same problem can you plz explan more or somthing, and ty
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)