Warning 204 : symbol is assigned a value that is never used: "Tuned"
#1

Код:
 warning 204: symbol is assigned a value that is never used: "Tuned"
The lines where "Tuned" is used:
Код:
 

     
     public OnGameModeInit()
     {
     Tuned = CreateVehicle(560,-1472.6376953125, 438.23937988281, 6.9924750328064, 268.69067382813,1,-1,60);
 	 AddVehicleComponent(560,1026);
  	 AddVehicleComponent(560,1027);
  	 AddVehicleComponent(560,1028);
     AddVehicleComponent(560,1032);
     AddVehicleComponent(560,1080);
     AddVehicleComponent(560,1138);
     AddVehicleComponent(560,1141);
     AddVehicleComponent(560,1171);
     ChangeVehiclePaintjob(560,2);
I know it looks like loose itendation ^ but its not in the code.
Whats Wrong with it?
Reply
#2

Quote:
Originally Posted by XxCozzaxX
Код:
 warning 204: symbol is assigned a value that is never used: "Tuned"
The lines where "Tuned" is used:
Код:
 

     
     public OnGameModeInit()
     {
     Tuned = CreateVehicle(560,-1472.6376953125, 438.23937988281, 6.9924750328064, 268.69067382813,1,-1,60);
 	 AddVehicleComponent(560,1026);
  	 AddVehicleComponent(560,1027);
  	 AddVehicleComponent(560,1028);
     AddVehicleComponent(560,1032);
     AddVehicleComponent(560,1080);
     AddVehicleComponent(560,1138);
     AddVehicleComponent(560,1141);
     AddVehicleComponent(560,1171);
     ChangeVehiclePaintjob(560,2);
I know it looks like loose itendation ^ but its not in the code.
Whats Wrong with it?
AddVehicleComponent(Tuned,1026);
AddVehicleComponent(Tuned,1027);
AddVehicleComponent(Tuned,102;
AddVehicleComponent(Tuned,1032);
AddVehicleComponent(Tuned,1080);
AddVehicleComponent(Tuned,113;
AddVehicleComponent(Tuned,1141);
AddVehicleComponent(Tuned,1171);
ChangeVehiclePaintjob(Tuned,2);
________
Vermont Dispensary
Reply
#3

Simple Mistake? Eh? Thanks
Reply
#4

ur welcome
________
Infant Avandia
Reply
#5

Great... That worked, thanks. But my CreateVehicle Doesn't Show Up!
Reply
#6

Sorry to bump but Etch i need ur help quick, i got to go soon and would like to get a little time playing with my tuned car!
Reply
#7

did u put on top of gamemode : new Tuned; ??
________
Nexium Classaction
Reply
#8

tuned_car is Created and have a Value but you never use it
Reply
#9

Код:
new Tuned;
Yes i did... And i have fixed the problem of unused, its just my vehicle doesn't show up...

Код:
public OnGameModeInit()
{
  AddOthers();   //Others
  AddPickups();  //Pickups
  AddTextDraws(); //textdraws
  AddSkins();   //Skins
  AddMenus();   //Menus
  

  new total_vehicles_from_files=0;


	total_vehicles_from_files += LoadStaticVehiclesFromFile("vehiclelists/all.txt");

 	Tuned = CreateVehicle(560,-1472.6376953125, 438.23937988281, 6.9924750328064, 268.69067382813,1,-1,3);
 	AddVehicleComponent(Tuned,1026);
  	AddVehicleComponent(Tuned,1027);
  	AddVehicleComponent(Tuned,1028);
  AddVehicleComponent(Tuned,1032);
  AddVehicleComponent(Tuned,1080);
  AddVehicleComponent(Tuned,1138);
  AddVehicleComponent(Tuned,1141);
  AddVehicleComponent(Tuned,1171);
  ChangeVehiclePaintjob(Tuned,2);
Reply
#10

Sorry to keep being annoying, i changed the respawn time to 60ms and its still doesn't work... whats wrong with it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)