Jump to content

qaisjp

Retired Staff
  • Posts

    2,344
  • Joined

  • Days Won

    10

Everything posted by qaisjp

  1. Using runcode + `run aclReload()` will work
  2. qaisjp

    Cant join servers

    Please go to Settings -> Advanced, and show us the settings (with a screenshot).
  3. qaisjp

    Cant join servers

    Does this issue occur when joining other servers?
  4. Here's the latest resource package (9.73mb at the moment).
  5. ACL looks fine. Please can you send us the actual error, not the code where the error is occurring. The actual exact error message.
  6. Please paste your acl.xml file here (in a code block)
  7. Type `/debugscript 3` and try to reproduce the issue Are there any errors? If so, what are the errors?
  8. You did not mention any log in issue. The register command is part of the admin resource.
  9. Use this stream: https://forum.multitheftauto.com/discover/5/ Press the tick button to make it as a default so it shows here:
  10. qaisjp

    The last reply

    Does this increment the content counter? Good, doesn't look like it does.
  11. Please update the admin resource to the latest version (extract from the latest resource archive) and retry. Does the error still occur?
  12. It is only necessary to use event handlers with function variables if you plan to use removeEventHandler on that event later on. This will not actually remove the event: -- Add an event addEventHandler("onPlayerJoin", root, function() outputChatBox("Player joined!") end ) -- Now to remove the event (WILL NOT ACTUALLY REMOVE THE EVENT) removeEventHandler("onPlayerJoin", root, function() outputChatBox("Player joined!") end ) It does not work because even though both functions contain the same code, they are technically different functions. This will remove the event, however: function announceJoin() outputChatBox("Player joined!") end -- Add an event addEventHandler("onPlayerJoin", root, announceJoin) -- Now to remove the event removeEventHandler("onPlayerJoin", root, announceJoin)
  13. How about this code? Instead of looping through the "mapSpawns" table to find the spawn that has the correct key, you can directly access the table. See line 3 below. for _, player in ipairs (getElementsByType ("player")) do local spawnIndex = math.random (1, #mapSpawns) local spawn = mapSpawns[spawnIndex] local veh = createVehicle (spawn.id, spawn.x, spawn.y, spawn.z) if veh then outputDebugString ("created veh") end warpPedIntoVehicle (player, veh) setCameraTarget (player, player) fadeCamera (player, true) end It's also a good idea to name variables something more informative, so I have made this change for you too. Depending on how many items you have in `mapSpawns`, and how many players you have, this could have been the source of your issue. It's unlikely this was the actual cause of the network trouble, but nevertheless, give it a go and get back to us.
  14. qaisjp

    [MTA] Compilation

    > Make sure you have Microsoft Foundation Classes for C++ installed. (You can re-run the installer to modify your current installation, no need to uninstall and reinstall)
  15. What is the exact error message (send a screenshot or type it out)?
  16. qaisjp

    MTA Server Compressing

    use an external http server with compression https://en.wikipedia.org/wiki/HTTP_compression
  17. qaisjp

    MTA Server Compressing

    Do you mean the actual server (MTA Server.exe, deathmatch.dll etc) or just the resources?
  18. Please show us your meta.xml file.
  19. Oh.. rly but I rewrote but not good /sorry for my bad english/ local szovegek = {} addEventHandler('onPlayerChangeNick', root, function(oldNick, newNick) szovegek[i] = ('* ' .. oldNick .. ' is now known as ' .. newNick, 255, 100, 100) triggerClientEvent("infoServer2", source) end ) ')' expected near ',' The issue here is szovegek[i] = ('* ' .. oldNick .. ' is now known as ' .. newNick, 255, 100, 100) You must use { and } to create a table to store those arguments. Try szovegek[i] = { .. contents here .. } instead. To use the result, do this: local result = szovegek[i] outputChatBox(unpack(result)) The "unpack" function will expand a table like `{value1, value2}` into arguments `value1, value2` (and so on)
  20. qaisjp

    MTA on Mac

    Follow these instructions. This is the simplest way to run MTA on Mac right now. Good luck. Feel free to ask any questions, if you have any.
  21. That won't work, but this might: local sourceTimer sourceTimer = setTimer(function () outputChatBox("1") killTimer(sourceTimer) end, 1000, 5)
  22. No. That's not what people on this subforum should be doing. We've been saying this for six damn years - providing the solution directly achieves nothing. The person asking the question will simply carry on asking questions and won't learn anything because they've been spoon fed everything. Help people come to their own solution by teaching them what's right, what's wrong, and what they need to do next. Sure, if you want to post the solution, feel free. But you better damn well explain what you've done.
×
×
  • Create New...