How to implement this function?
#1

How to implement this function?
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(56484) : error 017: undefined symbol "GetPlayerCameraTargetVehicle"
Reply
#2

Update to 0.3.7 as this function will not work for earlier versions.
Reply
#3

What should I change? Include?
Reply
#4

Download the server package and replace the executable files and the includes from pawno\include folder.
Reply
#5

I added no longer give errors but incontinuare does not work command. It should work just in front of the vehicle/repair
Код:
   if(strcmp(cmd, "/repair", true) == 0)
{
   if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
   {
          ApplyAnimation(playerid,"CAR", "Fixn_Car_Loop",4.1,1,1,1,1,10000);
          new vehicleid = GetPlayerCameraTargetVehicle(playerid);
          SetVehicleHealth(vehicleid, 1000.0);
          RepairVehicle(vehicleid);

   }
   return 1;
}
Reply
#6

https://sampwiki.blast.hk/wiki/EnablePlayerCameraTarget

It's disabled by default.
Reply
#7

All go/repair and if you're not in front of the vehicle
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)