xunks2 miniblogs

  • xunks2
    0

    Kura no programmēšanas valodām jums liekas visgrūtākā un kāpēc?

    • Wanted
      0

      C# un man vienalga, ko te tūlīt teiks visi kodu vīri, bet tas ir vienīgais, ko es zinu un kas man nepatīk.

    • Hennesy
      0

      Function handleOdoMeterRequest(totalDistance, syncDistance)
      if not totalDistance then
      local theVehicle = getPedOccupiedVehicle(client)
      if theVehicle == source then
      local totDistance = getElementData(theVehicle,"odometer") or 0
      triggerClientEvent(client, "realism:distance", theVehicle, totDistance)
      end
      else
      if not syncDistance then
      return
      end
      local theVehicle = getPedOccupiedVehicle(client)
      if theVehicle == source then
      local theSeat = getPedOccupiedVehicleSeat(client)
      if theSeat == 0 then
      local totDistance = getElementData(theVehicle,"odometer") or 0
      exports['anticheat-system']:changeProtectedElementDataEx(theVehicle, 'odometer', totDistance + syncDistance, false )
      depeteFuel(theVehicle, syncDistance)
      end
      end
      end
      end
      addEvent("realism:distance", true)
      addEventHandler("realism:distance", getRootElement(), handleOdoMeterRequest)

      function depeteFuel(theVehicle, syncDistance)
      return -- TODO
      end

      function syncOdoOnEnter(thePlayer)
      local odometer = getElementData(source, "odometer") or 0
      triggerClientEvent(thePlayer, "realism:distance", source, odometer)
      end
      addEventHandler("onVehicleEnter", getRootElement(), syncOdoOnEnter)

      zinu ka stulbs jautājums bet kas tā ir par valodu? Lua? kur un kā viņu iemācīties noderētu wink_mini.gif

      • kamaziK
        +1

        Yiss.. Its Lua.

        • Hennesy
          0

          Kur viņu viss vieglāk iemācīties?

      • SJohnson
        -1

        I lold

        • Hennesy
          0

          Man tagad bija jākrīt?

        • SJohnson
          -1

          Tev nē.

    • alberts00
      0

      Assembly? shura.gif