SA-MP Forums Archive
Warning 204 : symbol is assigned a value that is never used: "Tuned" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Warning 204 : symbol is assigned a value that is never used: "Tuned" (/showthread.php?tid=129504)



Warning 204 : symbol is assigned a value that is never used: "Tuned" - cozza123456 - 22.02.2010

Код:
 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?


Re: Warning 204 : symbol is assigned a value that is never used: "Tuned" - aircombat - 22.02.2010

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


Re: Warning 204 : symbol is assigned a value that is never used: "Tuned" - cozza123456 - 22.02.2010

Simple Mistake? Eh? Thanks


Re: Warning 204 : symbol is assigned a value that is never used: "Tuned" - aircombat - 22.02.2010

ur welcome
________
Infant Avandia


Re: Warning 204 : symbol is assigned a value that is never used: "Tuned" - cozza123456 - 22.02.2010

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


Re: Warning 204 : symbol is assigned a value that is never used: "Tuned" - cozza123456 - 22.02.2010

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!


Re: Warning 204 : symbol is assigned a value that is never used: "Tuned" - aircombat - 22.02.2010

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


Re: Warning 204 : symbol is assigned a value that is never used: "Tuned" - BlackFoX - 22.02.2010

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


Re: Warning 204 : symbol is assigned a value that is never used: "Tuned" - cozza123456 - 22.02.2010

Код:
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);



Re: Warning 204 : symbol is assigned a value that is never used: "Tuned" - cozza123456 - 22.02.2010

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