How to change The Maximum number of Vehicles ? - 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: How to change The Maximum number of Vehicles ? (
/showthread.php?tid=536282)
How to change The Maximum number of Vehicles ? -
EgyptForLife - 08.09.2014
Hello,
I downloaded
this filescript cause mine caused a lot of errors and problems + bugs. So i downloaded it and edited cars + prices etc.. I just want to edit the MAX_VEHICLES that can be owned and I can't find that. Please help me urgent and fast.
Re: How to change The Maximum number of Vehicles ? -
Abagail - 08.09.2014
Paste it here, I can't be bothered to download anything.
Re: How to change The Maximum number of Vehicles ? -
dusk - 08.09.2014
It seems that FS only allows one vehicle per player.
pawn Код:
new VehicleInfo[MAX_PLAYERS][car_info];
This is the main array in which information is stored. As you see there's only one slot for each player.
In short: there is no easy way to increase the limit. Although, you can rewrite it....
Re: How to change The Maximum number of Vehicles ? -
EgyptForLife - 08.09.2014
Quote:
Originally Posted by dusk
It seems that FS only allows one vehicle per player.
pawn Код:
new VehicleInfo[MAX_PLAYERS][car_info];
This is the main array in which information is stored. As you see there's only one slot for each player.
In short: there is no easy way to increase the limit. Although, you can rewrite it....
|
Then what you are saying is that there is now way to increase the limit ?
Re: How to change The Maximum number of Vehicles ? -
dusk - 08.09.2014
I'm not saying it's impossible. But I believe it's easier to write a new system than to rewrite this one.
Re: How to change The Maximum number of Vehicles ? -
Pawnify - 08.09.2014
new VehicleInfo[MAX_PLAYERS*3][car_info];
??Maybe this will work, making it 3 times as much as maximum players, not quite sure though.