11.08.2014, 12:53
Well, hello guys. I fixed almost all bugs in my Vehicle system, but now another appeared. The Vehicles load perfectly, but they don't set their NUMBERPLATES 'that perfectly'. :/
What I think is, that some vehicles DO NOT respawn, and their numberplate gets set to the next one, maybe?
For instance, two vehicles have the same numberplate? Why? I mean, just...why? How's it even possible?

And oh my gosh, one has '0'? really?

I have this under OnGameModeInit
About saving/loading data, I use fwrite method. My Families,Factions,Houses,Businesses system all work perfectly. Please help me. The one who solved me problem gets 3 Reps.
What I think is, that some vehicles DO NOT respawn, and their numberplate gets set to the next one, maybe?
For instance, two vehicles have the same numberplate? Why? I mean, just...why? How's it even possible?

And oh my gosh, one has '0'? really?

I have this under OnGameModeInit
pawn Код:
for(new i=1;i<MAX_SCRIPTVEHICLES+1;i++)
{
new engine, lights, alarm, doors, bonnet, boot, objective;
AddStaticVehicleEx(VehicleInfo[i][vModel],VehicleInfo[i][vLocX],VehicleInfo[i][vLocY],VehicleInfo[i][vLocZ],VehicleInfo[i][vAngle],
VehicleInfo[i][vColorOne],VehicleInfo[i][vColorTwo],3600);
SetVehicleNumberPlate(i,VehicleInfo[i][vPlate]);
SetVehicleToRespawn(i);
GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(i,0,0,alarm,doors,bonnet,boot,objective);
}


