10.08.2014, 06:48
Hello there, lads!
Let's get to the problem. I am using an Enumerator for the Vehicle System. I tried debugging it to see if it works, and guess what ....... it does. But the problem is,...errr... it doesn't create the vehicle In Game.
That's the Samp-server.
This is the Creation of vehicles under OnGameModeInit
That's how I debugged it.
Earlier, I used Player Vehicles but that's actually pretty useless, lacking many Functions like MDC check e.t.c
Please help me.
Let's get to the problem. I am using an Enumerator for the Vehicle System. I tried debugging it to see if it works, and guess what ....... it does. But the problem is,...errr... it doesn't create the vehicle In Game.
That's the Samp-server.
This is the Creation of vehicles under OnGameModeInit
pawn Код:
for(new i = 184; i < sizeof(VehicleInfo); i++)
{
AddStaticVehicleEx(VehicleInfo[i][vModel],VehicleInfo[i][vLocX],VehicleInfo[i][vLocY],VehicleInfo[i][vLocZ],VehicleInfo[i][vAngle],
VehicleInfo[i][vColorOne],VehicleInfo[i][vColorTwo],60000);
SetVehicleNumberPlate(i,VehicleInfo[i][vPlate]);
SetVehicleToRespawn(i);
}
pawn Код:
printf("Vehicle ID: %d | Model: %d | Owner: %s | LicensePlate %s",idx,VehicleInfo[idx][vModel],VehicleInfo[idx][vOwner],VehicleInfo[idx][vPlate]);
Please help me.