#1

How can I loop ONLY created vehicles? Because counting and updating MAX_VEHICLES is TOTAL stupidity.:/
Reply
#2

yes do new

new NAMEOFCRS[numberofvehiclesyouhave]

underongamemodeinit

NAMEOFCAR[0] = AddStaticVehicleEx(infohere,respawntime);
Reply
#3

Then I would need update [numberofvehiclesyouhave] -.-
Reply
#4

while then if your that worried about updateing set max vehicles to 999999 or somthing it does no harm
Reply
#5

Quote:
Originally Posted by PGTips
Посмотреть сообщение
while then if your that worried about updateing set max vehicles to 999999 or somthing it does no harm
Example please?
Reply
#6

#define MAX_VEHICLES 999999

it does no harm it just mean you can have infinate vehicles
Reply
#7

1. As I know, max vehicle limit is 2.000
2. I think you don't understand what do I need.
Reply
#8

you just need to change the max vehicles and if max is 2000 my mega old script is kina fucked then because i did

new PEDCAR[999999999]; gave me no troubles
Reply
#9

You really dont understand what do I need exactly.
Reply
#10

@PGTips: Hahaha, smartass. Now go look at the size of your AMX.
@OP: Use this:

pawn Код:
new MaxVehicles;

// GameModeInit
/*
    other vehicles go here
*/

MaxVehicles = AddStaticVehicle(...); // Last vehicle
If you use CreateVehicle in your gamemode (through command, for example), you'll need to set the new value accordingly;
pawn Код:
MaxVehicles = CreateVehicle(...);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)