06.06.2010, 12:50
a wired one i add my vehicles as so
and when i print this line printf("vehicleid %d vcount %d model %d",gVehicles[vcount],vcount,GetVehicleModel(gVehicles[vcount]));
it shows my first 16 vehiclesid are all mucked up
and 537,537,537,577,577,577 are the first 6 vehicles i add
any ideas people?
if its not to much trouble would someone else please try printing all there vehicleids and post the result?
pawn Code:
stock CreateWorldVehicle(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2,respawn=180) {
if(vcount < MAX_CARS ){
if (cartrack[vcount] == false) {
gVehicles[vcount] = CreateVehicle(vehicletype, x, y, z, rotation, color1, color2,respawn);
cartrack[vcount] = true;
printf("vehicleid %d vcount %d model %d",gVehicles[vcount],vcount,GetVehicleModel(gVehicles[vcount]));
vcount++;
}
else vcount++;
}
else printf("Max Cars Reached %d",vcount);
return vcount-1;
}
it shows my first 16 vehiclesid are all mucked up
Quote:
[00:55:19] vehicleid 1 vcount 0 model 537 [00:55:19] vehicleid 5 vcount 1 model 537 [00:55:19] vehicleid 9 vcount 2 model 537 [00:55:19] vehicleid 13 vcount 3 model 577 [00:55:19] vehicleid 14 vcount 4 model 577 [00:55:19] vehicleid 15 vcount 5 model 577 [00:55:19] vehicleid 16 vcount 6 model 449 [00:55:19] vehicleid 17 vcount 7 model 534 [00:55:19] vehicleid 18 vcount 8 model 495 [00:55:19] vehicleid 19 vcount 9 model 495 [00:55:19] vehicleid 20 vcount 10 model 495 [00:55:19] vehicleid 21 vcount 11 model 495 [00:55:19] vehicleid 22 vcount 12 model 444 [00:55:19] vehicleid 23 vcount 13 model 444 [00:55:19] vehicleid 24 vcount 14 model 444 |
any ideas people?
if its not to much trouble would someone else please try printing all there vehicleids and post the result?