• Content count

  • Joined

  • Last visited

Community Reputation

3 Neutral

About rusztamas

  • Rank


  • Location
  • Interests
    System Administration, Programming

Recent Profile Visitors

577 profile views
  1. unexpected symbol

    function planeCreate(jatekos) plane = createObject (14553, 58.7537+2, -1532.75745, 357.22136+0.25, 0, 0, 90) platform = createObject (14548, 58.75378, -1532.75745, 357.22136, 0, 0, 90) players = getElementsByType("player") if isTimer(teleportDelay) then killTimer (teleportDelay) end teleportDelay = setTimer (function() for i,p in ipairs(players) do outputChatBox ("#FFFFFFIt is not recommended to jump in a moving plane. If you are stuck up top, use the #2590CE/stuck#FFFFFF command!", p, 255, 255, 255, true) setElementPosition (p, 36.48424911499, -1532.5826416016, 351.02972412109) setPedRotation (p, 90) end, 20000, 1) end addEvent ("planeCreate", true) addEventHandler ("planeCreate", getRootElement(), planeCreate) debugscript says there is an unexpected symbol near "," (11) i just can't find it
  2. adding and removing event handlers?

    Hi! I am making a dx hud, and the elements are getting drawn on each other, i have not clue why, i'd like to find that one out in the future. I guess i need to use removeEventHandler, but i don't really know where to place it in my code. My code works like this: Player logs in, the script calls the function, which renders the scoreboard. exports.hud:render(). So as i wrote, i just saw while driving that they are getting drawn on each other, yet i have no clue why, (when i join the server, it gets drawn again) And when i place the removeeventhandler, somewhere, it sometimes work, but how do i add the event again? In not the same function? If it is not right after the function's end? I don't really understand this, i have never done stuffs like huds with renders and alike yet.
  3. Unable to load mta_mysql.dll

    thank you!
  4. Unable to load mta_mysql.dll

    i'll give it a try.... how do i make my server 64 bit btw? thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! i applied the patch, as you wrote in the topic i saw the very same problem, and downloaded and installed the runtime. it works, billion thanks.
  5. Problems loading modules in 1.5 servers

    yet it is unable to load the modul (126)
  6. Unable to load mta_mysql.dll

    (server 2008 r2 standart)
  7. Problems loading modules in 1.5 servers

    ccv i have the same problem, but this link is broken! could you please help me?
  8. Unable to load mta_mysql.dll

    MODULE: Unable to load mods\deathmatch\modules\mta_mysql.dll (126) Hi! Back in time, i uploaded my server in an archive to google drive. Now all of them are f#cked, i had to download nearly all of them again, and put them into the directory, where the corrupted dll-s were. Still it is not able to use this module. libmysql is in the correct place. I searched for error codes about this, i found nothing.
  9. fixed, the DLL files were damaged
  10. Hi! I have this little problem here, don't know why:
  11. How should i make a scoreboard?

    Hi! I'd like to make a dxDraw scoreboard, but i have no idea how to get started with it. Any ideas? I'd really appreciate your help this time.
  12. Ping Server(s)

    Hi! I have 3 Linux-based physical servers, that are available to use. To equalize the load between them, I have the following plan: Server #1 is the game server. Server #2 is the database server. and Server #3 will be a secondary database server. The SQL data is shared between server #2 and #3. But on server #3 other things are running too. I want to make the following script: Server #1 pings Server #2, and if it would return nil or false, or just simply a too high delay, Server #3 would do the SQL query. It may sound a bit foolish to you, but this is for practice for me. Can you help me with the function, that pings given ip addresses, and if there is packet loss or too high delay(250+ms) it would return nil or false? Yours, faithfully.
  13. Hi! I don't now if MTA is secure, and i don't know if the IP addresses could get leaked, and i don't know, if the players are sending packets to each other, or only just they communicate with the server, and the server with the other client. I want to make it secure, and safe. However, all of the logins and events get logged into our database with their IP addresses for our safety and protection, they can't get leaked anywhere. Are the players safe on the server? Are they sending packets to each other? Just because i would not like them to communicate, for our security reasons. How does it work here?
  14. Hi! I have dxDrawTextes which are getting drawn on each other and really dropping my FPS. I mean that the coordinates should stay the same, but the first one should disappear, then the other one should appear. And I have another problem as well, it says that the event is not added to clientside, meanwhile it is! And in the meta the client script starts before the server script! Server: function sendInformationToDebug() if isTimer(delay) then killTimer(delay) end delay = setTimer (function() triggerClientEvent ("recieveData", getRootElement(), state, robbery, drilling, stealthable) end, 100, 0) end addEventHandler ("onResourceStart", getResourceRootElement(getThisResource()), sendInformationToDebug) addEventHandler ("onPlayerJoin", getRootElement(), sendInformationToDebug) Client: function recieveData(state, robbery, drilling, stealthable) if state == nil or robbery == nil or drilling == nil or stealthable == nil then data = false else data = true triggerEvent ("drawRecievedData", getRootElement(), state, robbery, drilling, stealthable) end end addEvent ("recieveData", true) addEventHandler ("recieveData", getRootElement(), recieveData) function drawRecievedData(state, robbery, drilling, stealthable) function render() local stateStatus = state local robberyStatus = robbery local drillingStatus = drilling local stealthableStatus = stealthable local X, Y = guiGetScreenSize() local myX, myY = 1600, 900 if stateStatus == 0 then dxDrawText ("Safe: closed", 500, 500, _, _, _, _, roboto, _, _, _, _, _, true) elseif stateStatus == 1 then dxDrawText ("Safe: open", 500, 500, _, _, _, _, roboto, _, _, _, _, _, true) end end addEventHandler ("onClientRender", getRootElement(), render) end addEvent ("drawRecievedData", false) addEventHandler ("drawRecievedData", getRootElement(), drawRecievedData) How it looks:
  15. 3D sound is not stopping?

    thank you! i just copy pasted the line agains and i was not paying enough attention.