SA-MP Forums Archive
[Help] Cop Cars are for rent! - 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: [Help] Cop Cars are for rent! (/showthread.php?tid=85662)



[Help] Cop Cars are for rent! - MarqueZ92 - 08.07.2009

I really need help with this. Since i removed some Cars of CreateVehicle (im not sure if that caused the problem) i cant enter the most of the Cop cars anymore, they are locked. And the rest is for rent.

How could i fix that? Any suggestions where to check the lines?


Re: [Help] Cop Cars are for rent! - -eXo - 08.07.2009

You need to fix the vehicle ID's for cop cars and rent cars, etc.


Re: [Help] Cop Cars are for rent! - MarqueZ92 - 09.07.2009

Quote:
Originally Posted by -eXo
You need to fix the vehicle ID's for cop cars and rent cars, etc.
Where should it be then? Im not so familiar with that.


Re: [Help] Cop Cars are for rent! - MarqueZ92 - 18.07.2009

Bump..


Re: [Help] Cop Cars are for rent! - Crezzo - 18.07.2009

So you deleted a few of your CreateVehicle lines?
If you started from a existing script, just check the original.

Search the missing lines and add them back, problem solved?


Re: [Help] Cop Cars are for rent! - Sergei - 18.07.2009

Try making cars like this:
pawn Код:
new vehicle1 = CreateVehicle(modelid, Float:x, Float:y,Float:z, Float:angle, color1, color2, respawn_delay);
and then just use 'vehicle1' instead of ID, so you won't have problems like this if you delete or add some cars.


Re: [Help] Cop Cars are for rent! - MarqueZ92 - 18.07.2009

I already tried to set back the CreateVehicles from the unedited GM, it didnt work.

I also moved the Objects and the whole things i scripted to the old Gamemode, with the old Vehicles etc, but some cars wich i spawned with "AddStaticVehicleEx" are locked.

I will try Sergiy's method now.

EDIT: I got 20 Warnings with Sergiy's method and it didnt work..


Re: [Help] Cop Cars are for rent! - Sergei - 18.07.2009

Post errors here. Maybe it's just a small mistake somewhere.


Re: [Help] Cop Cars are for rent! - MarqueZ92 - 18.07.2009

Quote:
Originally Posted by Sergiy
Post errors here. Maybe it's just a small mistake somewhere.
Theres no error, its just a warning. It says that, for example "bus1" is not used etc.


Re: [Help] Cop Cars are for rent! - Sergei - 18.07.2009

Quote:
Originally Posted by MarqueZ92
Quote:
Originally Posted by Sergiy
Post errors here. Maybe it's just a small mistake somewhere.
Theres no error, its just a warning. It says that, for example "bus1" is not used etc.
Ah yes, you didn't use those 'new XXX' anywhere later on.