Jump to content

Erros de códigos antigos


Recommended Posts

Olá galera, recentemente fiz uma atualização na versão do mta porquê alguns dos mods não estavam funcionando, agora basicamente todos estão, mas tive alguns problemas sobre códigos antigos que estava naquele script, o script ainda funciona mesmo dando esse erro, mas seria melhor atualizar o comando para futuras versões, pra evitar futuros erros.

Bom aqui estão os erros que estão dando, se possível peço que me ajudem a saber se existe algum código para substitui-los.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

WARNING: maximap/maximap_c.lua(Line 159) [Client] getControlState is deprecated and may not work in future versions. Please replace with getPedControlState.

WARNING: maximap/getControlState.lua(Line 9) [Client] getControlState is deprecated and may not work in future versions. Please replace with getPedControlState.   

 Maximap_c.lua(Line 159): if getControlState("radar_zoom_in") and zoom<maxZoomLimit then

 getControlState.lua(Line 9): local mta_getControlState=getControlState

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

WARNING: [BVGE]Mecanico <min_mta_version> section in the meta.xml is incorrect or missing (expected at least client 1.5.2-9.07903 because of 'Painel_MecC.luac')

WARNING: [BVGE]Mecanico requires upgrade as <min_mta_version> section in the meta.xml is incorrect or missing (expected at least client 1.5.2-9.07903 because of 'Painel_MecC.luac')

Esse aqui não especifica a linha, creio que seja no meta como o próprio erro diz.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

WARNING: [BVG]AtirarVeih/driveby_client.lua(Line 254) [Client] setControlState is deprecated and may not work in future versions. Please replace with setPedControlState.

Some files in '[BVG]AtirarVeih' use deprecated functions.

[BVG]AtirarVeih/driveby_client.lua(Line 254): setControlState ( controlName, true )

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

WARNING: [BVG]CamHack/c_camhack.lua(Line 67) [Client] getControlState is deprecated and may not work in future versions. Please replace with getPedControlState.

Some files in '[BVG]CamHack' use deprecated functions.

[BVG]CamHack/c_camhack.lua(Line 67):  return mta_getKeyState(controlToKey[key]) or getControlState(key)

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

WARNING: [BVG]Celular/client.lua(Line 466) [Client] isPlayerDead is deprecated and may not work in future versions. Please replace with isPedDead.

Some files in '[BVG]Celular' use deprecated functions.

[BVG]Celular/client.lua(Line 466): if (not isPlayerDead(getLocalPlayer())) then

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

WARNING: [BVG]Radar/client.lua(Line 58) [Client] showPlayerHudComponent is deprecated and may not work in future versions. Please replace with setPlayerHudComponentVisible.

Some files in '[BVG]Radar' use deprecated functions.

[BVG]Radar/client.lua(Line 58): showPlayerHudComponent("radar", false)

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Bom, são esses ai, percebi que muitos são parecidos com o getControlState etc. Se puderem me ajudar agradeço ^^

 

Edited by Masterkula
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...