SA-MP Forums Archive
What is this!? - 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: What is this!? (/showthread.php?tid=184053)



What is this!? - NotoriousMOB - 17.10.2010

Hey

When i try to add vehicles in dealership using cars.cfg
and add my vehicle

so when i add one car the last car on the list will disapere.
It seems like there's a limit, anyone who can tell me how to edit this so i can add all the vehicles i want.


Re: What is this!? - Hal - 17.10.2010

what script is this?


Re: What is this!? - NotoriousMOB - 17.10.2010

im using Gtarp


Re: What is this!? - iFriSki - 17.10.2010

Carinfo and IsAnOwnableCar need updating when adding new purchasable vehicles.


Re: What is this!? - NotoriousMOB - 17.10.2010

Quote:

Carinfo and IsAnOwnableCar need updating when adding new purchasable vehicles.

can you tell me a bit more about how to update it?


Re: What is this!? - iFriSki - 18.10.2010

pawn Код:
new CarInfo[284][cInfo];
Increase the size of CarInfo to the amount of vehicles you add. It's used later on in the script, for a loop. Won't go into detail.

pawn Код:
public IsAnOwnableCar(vehicleid)
{
    if(vehicleid >= 184 && vehicleid <= 284) { return 1; }
    return 0;
}
In the code you will need to increase the maximum value.


This is basically saying ..

If the cars vehicle id is greater than, or equal to 184 and less than or equal to 284, return true.


Re: What is this!? - NotoriousMOB - 18.10.2010

Thanks alot man, i appreciate it.