How to change The Maximum number of Vehicles ?
#1

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.
Reply
#2

Paste it here, I can't be bothered to download anything.
Reply
#3

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....
Reply
#4

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 ?
Reply
#5

I'm not saying it's impossible. But I believe it's easier to write a new system than to rewrite this one.
Reply
#6

new VehicleInfo[MAX_PLAYERS*3][car_info];

??Maybe this will work, making it 3 times as much as maximum players, not quite sure though.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)