Numbers of vehicle
#1

[pawn]
stock AmountOfVehicles()
{
new VCount;
for(new i = 1; i < 2000; i++) if(GetVehicleModel(i) != 0) VCount++;
return VCount;
}

public OnGameModeInit()
{
AddStaticVehicle(411,1,2,3,4,1,2);
for(new i; i < 200; i++)
{
AddStaticVehicle(455,random(500),random(300)+100,r andom(800)/2+350,350%10*random(5),55,55);
AddStaticVehicle(610,random(500),random(300)+100,r andom(800)/2+350,350%10*random(5),55,55);
}
for(new x; x < 300; x++)
{
AddStaticVehicle(412,random(500),random(300)+100,r andom(800)/2+350,350%10*random(5),55,55);
AddStaticVehicle(555,random(500),random(300)+100,r andom(800)/2+350,350%10*random(5),55,55);
AddStaticVehicle(488,random(500),random(300)+100,r andom(800)/2+350,350%10*random(5),55,55);
}
return true;
}

main()
{
printf("
pawn Код:
: Vehicles %d | %d",AmountOfVehicles(),MAX_VEHICLES);
}
Result: Vehicles 699 | 2000
Reply
#2

and ?
Reply
#3

It's bug , lol

(200 * 2) + (300 * 3) + 1 = 1301 Vehicles i must have , and he show 699
Reply
#4

So , everybody it's wondering ?
Reply
#5

It shows 1301 on my server
Reply
#6

So why on mine shows 699 ? It's compiled with 0.3 pawn , also you can see the MAX_VEHICLES appear corectly ...
Reply
#7

Do you have 0.3 a_samp.inc? So the MAX_VEHICLES is not re-defined by you?
Reply
#8

Try moving print message to OnGameModeInit
Reply
#9

Quote:
Originally Posted by Finn
Do you have 0.3 a_samp.inc? So the MAX_VEHICLES is not re-defined by you?
if you look attently , MAX_PLAYERS shows correct ( 2000 )
Reply
#10

Quote:
Originally Posted by Щә яә Ґя
Quote:
Originally Posted by Finn
Do you have 0.3 a_samp.inc? So the MAX_VEHICLES is not re-defined by you?
if you look attently , MAX_PLAYERS shows correct ( 2000 )
MAX_VEHICLES*
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)