
juaosilv
Members-
Posts
118 -
Joined
-
Last visited
Everything posted by juaosilv
-
With this code how do I know which feature is bad? ["resource: ap_items, handled by: admin, key: trashID, file: admin_server.Lua, line-number: 1561"] = 1, <= When is this number high?
-
Vou re-formular, eu quis dizer que geralmente existem alguns scripts que save que fazem o seguinte: Eles pegam quando você loga/deslogar o elementData exemplo: saveAccount: local banco = getElementData(source, "Banco") setAccountData(source, "Banco", banco) Ai eles meio q fazem isso e dps q vc loga eles fazem pegam a accountData e setam na element. Isso q eu quis dizer, queria saber se é melhor usar direto accountData no sistema ou usar element mesmo com um sistema de save q faz essa função.
-
I sent all the log data in your private, there you can see the data they gave. With 15-20 the server started to slow down and crashing, I did not send here because it contains data from my users. @MrTasty I sent it in your Private too. Edit: Console logs: https://pastebin.com/jGc5AVvw
-
Oh, I had not seen the code. I thought he quoted the message above.
-
Eu utilizo um sistema de save q ele meio q faz isso com as elementData. Seria melhr eu usar logo accounData em algo q precise salvar doq elementData q utiliza um sistema de "save"(q no caso puxa os element e seta em account) p salvar?
-
Muito obrigado @DNL291, tem algumas coisas que eu utilizei elementData mas n tem nem necessidade. Mas agora me tira uma outra duvida, se eu fosse fazer um sistema igual esse que você me mandou qual seria a melhor forma pra eu salvar o valor do alpha do usuário pra por exemplo ele sair e ficar salvo, pois eu tenho bastante scripts q utilizo elementData mas n tem necessidade de salvar os dados quando o player desloga então posso fazer dessa forma q vc fez, mas os q precisam ser salvos depois q o cara deslogar eu teria q fazer em elemenData (com tables ou arrays é claro) ou teria uma forma melhor para isso sem precisar utilizar element?
-
I could not modify to identify only elementDataChange
-
The results I say I sent you are those up there.
-
Not sure, but according to the data you sent up there, he says it's that function.
-
Hello, when my server reaches 50-80 the download of the resources is very slow. The point is that my vps is good, is practically a dedicated was not meant to be like this. Is it necessary to release something in the MTA for this problem to stop, I don't know how to change any settings or something? My server has 120mb and internet data does not use even half and still the download is slow.
-
I didn't understand much but I could understand. kkkkkkkkkkkk How can I solve this problem? Code below: function Repair_Vehicle ( Car ) local cx, cy, cz = getElementPosition ( Car ) local px, py, pz = getElementPosition ( source ) local distance = getDistanceBetweenPoints3D ( cx, cy, cz, px, py, pz ) local accountname = getAccountName(getPlayerAccount(source)) if getElementData(source, "Reparando", true) then return end if getElementData(source, "player:KitR") < 1 then return end if ( distance <= 1.7 ) then if getElementData ( source, "player:Job" ) == "Mecanico" then setPedAnimation( source, "CAMERA", "piccrch_take", 3000, true, false, false, false) triggerClientEvent (source, "DNL:RepararStart", source) setElementData(source, "player:KitR", getElementData(source, "player:KitR") - 1) setTimer(function() fixVehicle ( Car ) end, 3000, 1) end end end addEvent ( "DNL:Reparar", true ) addEventHandler ( "DNL:Reparar", root, Repair_Vehicle)
-
Entendi, é pq eu tava usando elementDate em algumas coisas mas era tanto uso q tava crashando meu servidor. Meio q fiquei sem opção.
-
Olá, tive problemas com elementData esses dias e como foi me falado elementData usa muito do servidor. Qual seria a melhor solução p quem n quer usar elementData em tudo? Existe alguma função q faça as mesmas coisas?
-
How do you know this is it? Is there a limit of elementData? Because every other onElementDataChnge has values almost similar to this
-
Hello, that was the data with few online: Could not get many players now, is lagged in the range of 40-60. But I think with this data you can get an idea of what it is.
-
Servidor crashando
juaosilv replied to juaosilv's topic in Ajudas relacionadas ao MTA:SA (Cliente/Servidor)
Isso pode interfirir tb na velocidade do download dos mods ou só lag de fps/cpu? -
I already checked resources a few minutes before falling and not anything out of the ordinary. And about DDOS attacks, it is not because when I receive attacks I get an email warning and can see through the management panel of the machine. I'm running out of solutions already
-
Hello, I need some help. I recently opened my server and the higher the number of players the more lag of FPS and network was getting. I use a good dedicated and with plenty of GB / CPU / Internet, but still my crasha server after a while online, a friend told me that I would need to do something to make the MTA server use all the CPUs of the machine. Does anyone know how I can do this? I know the problem is not my machine because I analyzed the performance of the VPS and was using almost nothing and was still crashing. I'm sorry for my bad english. To summarize what I said: I am having problems with crashing, when I have many players the server is crashing and the download is slow. Error before crashing: InResultQueue > 200000 msgs. This is due to server overload or script freeze
-
Olá, preciso de uma ajuda. Abrir meu servidor recentemente e assim que a quantidade de players ia aumentando mais lagado em questão de FPS e travadas o servidor ia ficando. Eu uso um dedicado bom e com bastante GB/CPU/Internet mas ainda sim meu servidor crasha depois de um certo tempo online, um amigo me disse que eu precisaria fazer algo pra fazer com que o MTA server utilize todas as CPUs da maquina. Alguém sabe como eu posso fazer isso? Eu sei que o problema não é minha maquina pois analisei a performance da VPS e não tava utilizando quase nada e ainda sim tava crashando. Erro que aparece antes de crashar: InResultQueue > 200000 msgs. This is due to server overload or script freeze
-
Opa, salve. Queria saber se tem alguma forma de utilizar bonne_attach em interior, eu utilizo mas sempre q entro em algum interior some, ai eu saio aparece dnv.
-
Sim isso eu sei, mas queria saber a melhor forma. Pensei em fazer pra identificar a ID da skin e setar de acordo com o configurado pra quela ID, mas se eu utilizo mts skins ia ser um código gigante com um tamanh diferente p cada. Queria uma forma não tão complicada de fazer isso.
-
Opa, fiz um sistema de mascaras mais em algumas skins a marcara fica meio dentro da cabeça, no caso bugada, ai pra ajeitar eu teria q ajeitar as coords mas ai ia ficar bugado em outras skins. Qual melhor solução pra ficar boa em todas as skins, eu teria q fazer as coords pra cada skin?
-
Olá, estou com alguns WARNINGS e queria saber como posso ajeitar. Bad argument @'processLineOfSight' expectec vector3 Esse ai tá dando em vários scripts quando eu clico em algum menu ou algo do itpo. Code: function render() local screenx, screeny, worldx, worldy, worldz = getCursorPosition() local px, py, pz = getCameraMatrix() local hit, x, y, z, elementHit = processLineOfSight ( px, py, pz, worldx, worldy, worldz ) local tx, ty, tz = getElementPosition(localPlayer) local rx, ry, rz = getElementPosition(ped1) local distancia = getDistanceBetweenPoints3D(tx, ty, tz, rx, ry, rz) if not isEventHandlerAdded("onClientRender", root, armas) then if (distancia < 5) then if hit then if elementHit == ped1 then triggerServerEvent("armasAbrir", localPlayer) end end end end end addEventHandler("onClientClick", root, render)
-
Salve lord, me da um help. Eu to tentando fazer isso, atualmente eu fiz na client pra quando o cara clicar num botão executar uma função que desativa/ativa o carro. E fiz também na client um triggerServerEvent que seta a AccountDate no cara pra identificar quando ele relogar, mas a questão é q eu queria fazer nessa função da client pra um getAccountData pra executar uma certa função, se ele tivesse por exemplo getAccountData(account, "Carro1") como true por exemplo, quando ele clicasse no menu ia dar um erro q já esta ativado o carro, assim também quando eu executasse a função no client-side ele ia identificar e setar de acordo com o cara pq se não no server-side eu ia precisar fazer duas funções tipo: function CarroDesativado() function CarroAtivado() Uma pra cada accountDate q ele tiver e eu tenho mts carros ia ser um código gigante, se funcionasse accountDate na client eu ia fazer só function Carro() getAccountData(account, "Carro") == "Ativado" ===CODE DE ATIVAR O CARRO= else === code de desativar o carro === end em vez de fazer uma função pra ativar e outra pra desativar. Qual a melhor solução nesse caso. OFF: Aliais parabéns pelo mod!
-
Vou tentar fazer, eu fiz mas o usuário tinha q desativar sempre q entrar.