Jump to content

Erros de códigos antigos


Recommended Posts

Posted (edited)

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
  • Moderators
Posted

Ele também mostra um comando que vc tem que usar para fazer atualização dos resources. Leia com atenção além dos erros.

Se não me engano é o /upgrade <nomedoResource>

  • Thanks 1

Eu te ajudei ou achou meu comentário útil? Não esqueça de deixar um Thanksspacer.png

Minhas contribuições para a comunidade: LordHenry - MTA Wiki Profile
Inscreva-se no meu canal do YouTube: Lord Henry - Entertainment
Discord Oficial do MTA: https://mtasa.com/discord
Blacklist e Whitelist de Scripters: Planilha

Por favor, não me envie mensagens privadas solicitando suporte. Crie um tópico no fórum em vez disso.

  • Moderators
Posted
4 minutes ago, Lord Henry said:

Se não me engano é o /upgrade <nomedoResource>

O < > não faz parte do comando.

É só pra indicar que o conteúdo dentro dele é variável.

Eu te ajudei ou achou meu comentário útil? Não esqueça de deixar um Thanksspacer.png

Minhas contribuições para a comunidade: LordHenry - MTA Wiki Profile
Inscreva-se no meu canal do YouTube: Lord Henry - Entertainment
Discord Oficial do MTA: https://mtasa.com/discord
Blacklist e Whitelist de Scripters: Planilha

Por favor, não me envie mensagens privadas solicitando suporte. Crie um tópico no fórum em vez disso.

Posted (edited)

Bom, não estava indo o comando dentro do jogo, tentei fazer o mesmo no console do painel da host e funcionou, obrigado a todos que ajudaram!

Edited by Masterkula

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...