Plates problem
#1

pawn Код:
//ongamemodeinit   
for(new i=0;i<MAX_VEHICLES;i++)
    for(new i2=0; i2<MAX_VEHICLES; i2++)
    {
    if(IsACopCar(i))
    {
        SetVehicleNumberPlate(i2,"SAPD");
    }
    if(IsAnFbiCar(i))
    {
        SetVehicleNumberPlate(i2,"FBI");
    }
    if(IsAFiremenCar(i))
    {
        SetVehicleNumberPlate(i2,"SAFD");
    }
    if(IsAnAmbulance(i))
    {
        SetVehicleNumberPlate(i2,"LSMD");
    }
    if(IsASwatCar(i))
    {
        SetVehicleNumberPlate(i2,"SWAT");
    }
    else
    {
        SetVehicleNumberPlate(i2,"STATE");
    }
    SetVehicleToRespawn(i);
    }
Plates are still ZXY000 or whatever the default text was...whats wrong in the script? :/
Reply
#2

Can you show the codes after SetVehicleToRespawn?
Reply
#3

Why are you looping through the vehicles again each time you loop through the vehicles? Makes no sense.
Reply
#4

I think because the he is using different vehicles thats why
Reply
#5

Quote:
Originally Posted by nilanjay
Посмотреть сообщение
Can you show the codes after SetVehicleToRespawn?
Uh just createpickups, objects, vehicles etc...
Reply
#6

Quote:
Originally Posted by Ensconce
Посмотреть сообщение
Why are you looping through the vehicles again each time you loop through the vehicles? Makes no sense.
Exactly what I was thinking.

Quote:
Originally Posted by nilanjay
Посмотреть сообщение
I think because the he is using different vehicles thats why
What does it matter? He has a loop in a loop, but both loops do the same thing, hence it makes no sense at all. And after all, this comes down to 2000^2 (4,000,000) iterations when you have only 2000 cars (max)!
Reply
#7

Quote:
Originally Posted by Vince
Посмотреть сообщение
Exactly what I was thinking.


What does it matter? He has a loop in a loop, but both loops do the same thing, hence it makes no sense at all. And after all, this comes down to 2000^2 (4,000,000) iterations when you have only 2000 cars (max)!
Oh okay. Thanks for telling.
Reply
#8

Uhm I see...I tried to fix it but still didn't get it to work >_>
Reply
#9

Any help..?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)