A new way to add more vehicle in LARP.but still some problem - 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)
+--- Thread: A new way to add more vehicle in LARP.but still some problem (
/showthread.php?tid=316962)
A new way to add more vehicle in LARP.but still some problem -
Soap_MacTavish - 09.02.2012
I find a good way.
set all of the vehicles become ownable.and than
when the owner is FBI,COP,GANG_one..they can be driven by members.(it look so stupid?
)
But there still some problem:
Код:
public IsACopCar(carid)
{
new owner = CarInfo[carid][cOwner];
if(owner == LSPD)
{
return 1;
}
return 0;
}
error 017: undefined symbol "LSPD"
How to solve this problem?
Re: A new way to add more vehicle in LARP.but still some problem -
iTorran - 09.02.2012
pawn Код:
public IsACopCar(carid)
{
if(strcmp(CarInfo[carid][cOwner], "LSPD", true) == 0)
{
return 1;
}
return 0;
}
Re: A new way to add more vehicle in LARP.but still some problem -
Soap_MacTavish - 09.02.2012
Quote:
Originally Posted by iTorran
pawn Код:
public IsACopCar(carid) { if(strcmp(CarInfo[carid][cOwner], "LSPD", true) == 0) { return 1; } return 0; }
|
thx very much