Multiple vehicles
#1

Hello its me again!

Thanks for all help, i have made my first car ownership but there you can only own one car.

I want to move like levelup and make multiple cars.

I had idea to duplicate all, like make

Код:
pCar
PCar2
pCar3
pCar4
pCar5
And then
Код:
if(PlayerInfo[playerid][pCar] > 399) 
PlayerInfo[playerid][pCar2] = 415);
But i dont think its best idea how to make it because there i have to type a lot and it will be very useless.

Can anyone help?
Reply
#2

anyone?
Reply
#3

Don't bump after 1 hour.
Reply
#4

pawn Код:
#define max_owned 5
enum pinfo
{
                 pCar[max_owned];
};
new num=399;
for(new i=0;i<max_owned;i++)
{
                 if(pCar[i] >num)
                 {
                                  num=+20;
                                  pCar[i+1]=num;
                 }
}
something like this you meant?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)