Simple Code Not working
#1

Код:
if (IsACopCar(vehicleid) && copcar[playerid] == 255)) //line 4245
{
SetVehicleToRespawn(vehicleid);
return 1; //line 4248
}
Errors:
Код:
C:\Users\Lachlan\Desktop\0.3a DRP\pawno\DRP.pwn(4245) : error 010: invalid function or declaration
C:\Users\Lachlan\Desktop\0.3a DRP\pawno\DRP.pwn(4248) : error 010: invalid function or declaration
Thanks In advance, antonio ~
Reply
#2

Quote:
Originally Posted by Antonio (dominationrp.netii.net)
Код:
if (IsACopCar(vehicleid) && copcar[playerid] == 255)) //line 4245
{
SetVehicleToRespawn(vehicleid);
return 1; //line 4248
}
Errors:
Код:
C:\Users\Lachlan\Desktop\0.3a DRP\pawno\DRP.pwn(4245) : error 010: invalid function or declaration
C:\Users\Lachlan\Desktop\0.3a DRP\pawno\DRP.pwn(4248) : error 010: invalid function or declaration
Thanks In advance, antonio ~
Try this:
pawn Код:
if (IsACopCar(vehicleid) && copcar[playerid] == 255)
{
  SetVehicleToRespawn(vehicleid);
  return 1;
}
Reply
#3

Same errors.

Also, this is in OnPlayerExitVehicle
Reply
#4

I'm not sure but i think you must get the vehicle id / closest vehicle to you.
Reply
#5

Wrong. The player is in the vehicle, therefore its vehicleid.
Reply
#6

"I'm not sure." At this time/hour i'm confused. I just tried to help.
Reply
#7

Alright. Can anyone eles help?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)