Simple Code Not working - 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: Simple Code Not working (
/showthread.php?tid=142096)
Simple Code Not working -
Antonio [G-RP] - 17.04.2010
Код:
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 ~
Re: Simple Code Not working -
XRVX - 17.04.2010
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;
}
Re: Simple Code Not working -
Antonio [G-RP] - 17.04.2010
Same errors.
Also, this is in OnPlayerExitVehicle
Re: Simple Code Not working -
russo666 - 17.04.2010
I'm not sure but i think you must get the vehicle id / closest vehicle to you.
Re: Simple Code Not working -
Antonio [G-RP] - 17.04.2010
Wrong. The player is in the vehicle, therefore its vehicleid.
Re: Simple Code Not working -
russo666 - 17.04.2010
"I'm not sure." At this time/hour i'm confused. I just tried to help.
Re: Simple Code Not working -
Antonio [G-RP] - 17.04.2010
Alright. Can anyone eles help?