Posts: 303
Threads: 27
Joined: Aug 2013
Reputation:
0
Can you show the SetVehicleToRespawnEx stock?
Btw what do you exactly want these codes to do? Explain it so that i can help better
Posts: 449
Threads: 125
Joined: Apr 2013
Reputation:
0
I want to EXCLUDE some vehiecle ids from respawn.
Posts: 449
Threads: 125
Joined: Apr 2013
Reputation:
0
It compiled fine , but how can i exclude the truck trailers from rac? (respawn all cars)
Posts: 1,767
Threads: 124
Joined: Mar 2010
Create a table, where you will store the IDs of truck trailers, and you will need to use if statement, as showed above, which is excluding valid vehicles from respawn.
Like this:
pawn Код:
if(!IsValidVehicle(car)) continue;
But with your truck trailers table created. Create your table at the top, of your script, somewhere under the includes. If you need to find the IDs of trailers, look for them in SA-MP's wiki, there are all the IDs of vehicles and its attachments (trailers etc.)
Posts: 449
Threads: 125
Joined: Apr 2013
Reputation:
0
I already have my all cars stored on mysql with car ids and samp car ids how can i exclude them using statement?
What statement give me an example.
Posts: 1,767
Threads: 124
Joined: Mar 2010
Did I say anything about MySQL database, or table (array)? Try to find more informations about it, do your own research, and you will find what you.
About the "if statement", it has been described at wiki.sa-mp - ALSO, I have literally told you everything, what you need to do, to get it done. Method of tries and mistakes will never let you down.
Before you post your next post.. TRY.