Beiträge von HypnoticGD

    als normaler User kann man auto's kaufen aber wen man Admin ist Kommt dieser Fehler

    ERROR: [gamemodes]/vio/carsys/carhouses/carbuy_allround.lua:35: attempt to compare number with boolean

    + beim reconnecten sind die Stunden immer auf 0:0 jedes Reconnecten ;(

    ok habs


    //edit
    Aber tzd habe ich das problem mit dem guiGetScreenSize
    unter guiGetScreenSize finde ich nur 3 Zeilen Nämlich
    local screenx, screeny = guiGetScreenSize()
    local valx, valy = screenx/1366, screeny/768
    sw, sh = guiGetScreenSize()

    jetz sind überall bei der Funktion showpaintmenue immer 2 "(" ")"

    //Edit

    Lua
    mehrspeed1 = math.floor(100/math.floor(this1["maxVelocity"])*(math.floor(this1["maxVelocity"]+30/3*1))-100
    		mehrspeed2 = math.floor(100/math.floor(this1["maxVelocity"])*(math.floor(this1["maxVelocity"]+30/3*2))-100
    		mehrspeed3 = math.floor(100/math.floor(this1["maxVelocity"])*(math.floor(this1["maxVelocity"]+30/3*3))-100
    		mehrbesch1 = math.floor(100/math.floor(this1["engineAcceleration"])*math.floor(this1["engineAcceleration"]/this1["maxVelocity"]*(this1["maxVelocity"]+100/3*1)))-100
    		mehrbesch2 = math.floor(100/math.floor(this1["engineAcceleration"])*math.floor(this1["engineAcceleration"]/this1["maxVelocity"]*(this1["maxVelocity"]+100/3*2)))-100
    		mehrbesch3 = math.floor(100/math.floor(this1["engineAcceleration"])*math.floor(this1["engineAcceleration"]/this1["maxVelocity"]*(this1["maxVelocity"]+100/3*3)))-100
    		mehrtarge1 = math.floor(100/math.floor(this1["engineInertia"])*math.floor(this1["engineInertia"]/this1["maxVelocity"]*(this1["maxVelocity"]+100/3*1)))-100
    		mehrtarge2 = math.floor(100/math.floor(this1["engineInertia"])*math.floor(this1["engineInertia"]/this1["maxVelocity"]*(this1["maxVelocity"]+100/3*2)))-100
    		mehrtarge3 = math.floor(100/math.floor(this1["engineInertia"])*math.floor(this1["engineInertia"]/this1["maxVelocity"]*(this1["maxVelocity"]+100/3*3)))-100

    // EDIT
    und einmall vom Colorpicker :

    Lua
    local screenx, screeny = guiGetScreenSize()
    local valx, valy = screenx/1366, screeny/768
    sw, sh = guiGetScreenSize()

    bei Debugscript kommt Debugscript 3 = ERROR: Server triggered clientside event showpaintmenue,but event is not added clientside
    Beim Restarten = ERROR Loading Script failed: [Gamemodes]script/carsys/Michelles/Michelles_gui.lua:769: ')' exected (to close '(' at line 768) near 'mehrspeed2'
    Beim Restarten = ERROR: ...eallife/carsys/Michelles/colorpicker/colorpicker.lua:1: attempt to call global 'guiGetScreenSize' (a niel value)


    // EDIT 1 Neuen Error Hinzugefügt

    function showpaintmenue (player)
    vColorOld1, vColorOld2, vColorOld3, vColorOld4 = getVehicleColor ( getPedOccupiedVehicle ( getLocalPlayer() ) )
    guiSetVisible(michellesVehiclewindow, true)

    customshop()

    setGarageOpen ( 24, false )
    toggleAllControls(false)
    showCursor(true)
    setCameraMatrix(-1783,1219,27,-1787,1214,25)
    end

    addEventHandler("onClientRender", root, drawcsinfo)
    addEventHandler ( "showcsinfo", getRootElement(), showcsinfo)
    addEventHandler("onClientMouseEnter", _G["csb"..tostring(i)], BEnter)
    addEventHandler("onClientMouseLeave", _G["csb"..tostring(i)], BLeave)
    addEventHandler("onClientGUIMouseDown", svmap, mouseDown, false)
    addEventHandler("onClientMouseLeave", svmap, mouseSnap, false)
    addEventHandler("onClientMouseMove", svmap, mouseMove, false)
    addEventHandler("onClientGUIMouseDown", hbar, mouseDown, false)
    addEventHandler("onClientMouseMove", hbar, mouseMove, false)
    addEventHandler("onClientClick", root, mouseUp)
    addEventHandler("onClientGUIMouseUp", root, mouseUp)
    addEventHandler("onClientGUIScroll",sb1,OnScroll)
    addEventHandler("onClientRender", root, draw_customshop)
    addEventHandler ( "onClientGUIClick", getRootElement(), function()
    addEventHandler("onColorPickerOK", root,
    addEventHandler ( "showpaintmenue", getRootElement(), showpaintmenue)

    also meinst du den Michelles_server.lua ? oder den Michelles_gui.lua
    carsys/Michelles/Michelles_server.lua:19: attempt to concatenate local 'NT2' (a boolean value)
    = local NT2 = laGetElementData ( getPedOccupiedVehicle(player), "NewTuningMU" )

    <file src="carsys\Michelles\colorpicker\sv.png" />
    <file src="carsys\Michelles\colorpicker\cursor.png" />
    <file src="carsys\Michelles\colorpicker\blank.png" />
    <file src="carsys\Michelles\colorpicker\h.png" />
    <script src="carsys\Michelles\colorpicker\colorpicker.lua" type="client" />
    <script src="carsys\Michelles\Michelles_gui.lua" type="client" />
    <script src="carsys\Michelles\Michelles_server.lua" type="server" />

    ok funktioniert aber wen ich reinfahre komme ich Dimension 0 wo nix ist und es Kommt aber auch kein Gui wo ich mein auto's tunen kann ich bin jetz in Dimension X so zusagen X heiß irgentwo

    und es gibt ein error carsys/Michelles/Michelles_server.lua:19: attempt to concatenate local 'NT2' (a boolean value) +
    carsys/Michelles/Michelles_gui.lua(Line 340) [Client] getPlayerOccupiedVehicle is deprecated and may not work in future versions. Please replace with getPedOccupiedVehicle.