Help with making a vehicle system
#1

Hey guys, how are ya'?
I'm trying to make a vehicle system for my GM, but I have some troubles.
I'm mapping the GM with MTA of course, and after that I'm converting it using convertffs.com.
As you may know, it also converts vehicles and outputs them as "AddStaticVehicleEx".
Now, I want to make a public called "LoadVehicles", which loads all the vehicles, and then inserts them into the Database if they don't exists (I know how to do the MySQL part). Problem is, I've tried to make something like that as a scratch:
pawn Код:
public LoadVehicles() {
    for (new i; i < MAX_VEHICLES; i++) {
        if (GetVehicleModel(i)) {
            SetVehicleToRespawn(i);
            printf("vehicle %d loaded.",i);
        }
    }
    return 1;
}
But it just doesn't load the vehicles (I've used "GetVehicleModel" to know if this vehicle exists, I don't want it to load me vehicles that don't exists). But it just don't load my anything. If I remove the "GetVehicleModel", it loads me vehicles - But even vehicles that don't exist.
What should I do? How should I load the vehicles?

Thanks !
Reply


Messages In This Thread
Help with making a vehicle system - by Verbal - 12.05.2012, 14:33
Re: Help with making a vehicle system - by SuperViper - 12.05.2012, 14:37
Re: Help with making a vehicle system - by doreto - 12.05.2012, 14:37
Re: Help with making a vehicle system - by Verbal - 12.05.2012, 14:43

Forum Jump:


Users browsing this thread: 1 Guest(s)