SA-MP Forums Archive
RepairVehicle(GetPlayerVehicleID(playerid)); ERROR I need Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: RepairVehicle(GetPlayerVehicleID(playerid)); ERROR I need Help (/showthread.php?tid=150412)



RepairVehicle(GetPlayerVehicleID(playerid)); ERROR I need Help - Abdulla_Alnuaimi - 26.05.2010

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


Re: RepairVehicle(GetPlayerVehicleID(playerid)); ERROR I need Help - [MWR]Blood - 26.05.2010

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


Re: RepairVehicle(GetPlayerVehicleID(playerid)); ERROR I need Help - Abdulla_Alnuaimi - 26.05.2010

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