My car system
#1

Hey guys. I just attempted to make a vehicle system. It saves all of the vehicle information to an ini file using dini correctly. However, the vehicles won't spawn OnGameModeInit. Here is what I have to make them spawn:
pawn Код:
for(new i = 1; i<MAX_VEHICLES; i++) {
        format(file, sizeof(file),VEHICLE, i);
        CreateVehicle(VehicleInfo[i][Model],VehicleInfo[i][vx],VehicleInfo[i][vy],VehicleInfo[i][vz], VehicleInfo[i][va],VehicleInfo[i][Color1],VehicleInfo[i][Color2], 99999);
        strcat(VehicleInfo[i][Owner], dini_Get(file, "Owner"), 50);
}
If any more info is needed, just ask.
Reply
#2

CreateVehicle
Reply
#3

Quote:
Originally Posted by AK47317
Посмотреть сообщение
I know the parameters for CreateVehicle. I can't get my code to spawn the vehicles from the ini files.
Reply
#4

the re spawn delay too long for 99999 lol change it to 1

maybe..
Reply
#5

Quote:
Originally Posted by AK47317
Посмотреть сообщение
the re spawn delay too long for 99999 lol change it to 1

maybe..
That wouldn't cause it.
Reply
#6

respawn_delay The delay until the car is respawned without a driver in seconds.
Reply
#7

Quote:
Originally Posted by AK47317
Посмотреть сообщение
respawn_delay The delay until the car is respawned without a driver in seconds.
That's the REspawn.
Reply
#8

never though that happen :P
Reply
#9

Type -1 in the respawn delay and it will never respawn.
And you don't seem to load the vehicle data before creating the vehicle.
Reply
#10

Quote:
Originally Posted by Mike Garber
Посмотреть сообщение
Type -1 in the respawn delay and it will never respawn.
And you don't seem to load the vehicle data before creating the vehicle.
So.. Do you have any idea of how to fix my problem?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)