Something about car system.
#1

Umm, I'm out of ideas. Well, i'm gonna explain simply

I have a gamemode script for roleplay. And when I buy a car from dealership, with /v buy, it creates a car for me but that car always mixing with faction cars or another cars. For example when I buy a buffalo from Grotti, my stats shows a NG Patrol car or Zr-350(this can change every try). And when I go to that vehicle and /v park it, it turns to a buffalo and owner turns to me. How to fix this? Or how to add AVS and delete this system?
Reply
#2

I guess your script having a bug in it.. when you buy a car, it creates a new car but its messed up with the car id..


pawn Код:
for(new i=0;i<MAX_VEHICLE;i++)
    {
        if(VehicleInfo[i][EVOwner] == playerid && VehicleInfo[i][EVType] == EVehicleType_Owned)
        {
            // what ever you want here
                       // this loop checks if you are the owner of the car or not.
        }
    }
Reply
#3

I wonder how to delete this static car system and add a dynamic system
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)