SA-MP Forums Archive
Problem with turning of the engine control - 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: Problem with turning of the engine control (/showthread.php?tid=206264)



Problem with turning of the engine control - Osviux - 03.01.2011

Код:
C:\Users\Labas\Desktop\GM\gamemodes\GM.pwn(382) : warning 219: local variable "objective" shadows a variable at a preceding level
C:\Users\Labas\Desktop\GM\gamemodes\GM.pwn(12092) : warning 219: local variable "objective" shadows a variable at a preceding level
Код:
      if(dialogid == 802)
      {
      if(response)
      {
      if(listitem == 0)
      {
      new vehicleid;
      vehicleid = GetPlayerVehicleID(playerid);
      GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
      SetVehicleParamsEx(vehicleid,1,lights,alarm,doors,bonnet,boot,objective);
      }
      if(listitem == 1)
      {
      new vehicleid;
      vehicleid = GetPlayerVehicleID(playerid);
      GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
      SetVehicleParamsEx(vehicleid,0,lights,alarm,doors,bonnet,boot,objective);
      }
      }
      return 1;
   }