Jump to content

Search the Community

Showing results for tags 'deprecated'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 2 results

  1. Ola pessoal meu sistema de radar esta dando o aviso de função deprecated não sei oque é isso pois sou novo no .lua, mas se alguem conseguir me explicar e me ajudar a resolver fico grato:) Codigo Erro 1: local states={ ["radar_zoom_in"]=false, ["radar_zoom_out"]=false, ["radar_move_north"]=false, ["radar_move_south"]=false, ["radar_move_east"]=false, ["radar_move_west"]=false, } local mta_getControlState = getControlState function getControlState(control) local state=states[control] if state==nil then return mta_getControlState(control) else return state end end local function handleStateChange(key,state,control) states[control]=(state=="down") end for control,state in pairs(states) do for key,states in pairs(getBoundKeys(control)) do bindKey(key,"both",handleStateChange,control) end end Codigo Erro 2: function checkMovement() -- Zoom if getControlState("radar_zoom_in") and zoom<maxZoomLimit then zoom=zoom+zoomRate if zoom>maxZoomLimit then zoom=maxZoomLimit end elseif getControlState("radar_zoom_out") and zoom>minZoomLimit then zoom=zoom-zoomRate if zoom<minZoomLimit then zoom=minZoomLimit end zoomOutRecalculate() end -- Move if getControlState("radar_move_north") then local newY=y-yOffset*zoom+(yOffset+movementSpeed)*zoom if newY<0 then yOffset=yOffset+movementSpeed end end if getControlState("radar_move_south") then local newY=y-yOffset*zoom+(yOffset-movementSpeed)*zoom if newY>(-vSize+screenH) then yOffset=yOffset-movementSpeed end end if getControlState("radar_move_west") then local newXOff=(xOffset+movementSpeed) local newX=x-xOffset*zoom+newXOff*zoom if newX<0 then xOffset=xOffset+movementSpeed end end if getControlState("radar_move_east") then local newX=x-xOffset*zoom+(xOffset-movementSpeed)*zoom if newX>(-hSize+screenW) then xOffset=xOffset-movementSpeed end end end addEvent("onClientPlayerMapHide") addEvent("onClientPlayerMapShow") Erro: https://prnt.sc/uca2gd essas 2 funções esta dando deprecated pfv alguem me ajude.
  2. Hello, there, I have a serious problem. My MTA has patched when I started it. After that I ran the server, joined and started my script, that worked today at 1 AM. Now I get errors. debugscript says that this: --[[ Something here so it's commented. --]] is deprecated, as well as it says that i have and unexpected character near "[" in this line: outputChatBox(tostring(i).."|"..items[slot[3]][2]) Again. The exact same script has worked at 1AM today. What did the patch change?
×
×
  • Create New...