qaisjp
Retired Staff-
Posts
2,344 -
Joined
-
Days Won
10
Everything posted by qaisjp
-
Using runcode + `run aclReload()` will work
-
Please go to Settings -> Advanced, and show us the settings (with a screenshot).
-
Does this issue occur when joining other servers?
-
ACL looks fine. Please can you send us the actual error, not the code where the error is occurring. The actual exact error message.
-
Please paste your acl.xml file here (in a code block)
-
Type `/debugscript 3` and try to reproduce the issue Are there any errors? If so, what are the errors?
-
You did not mention any log in issue. The register command is part of the admin resource.
-
Use this stream: https://forum.multitheftauto.com/discover/5/ Press the tick button to make it as a default so it shows here:
- 84 replies
-
- mtasa
- forum stuff
-
(and 5 more)
Tagged with:
-
A. Make the law Q. What would you do?
-
Does this increment the content counter? Good, doesn't look like it does.
-
Please update the admin resource to the latest version (extract from the latest resource archive) and retry. Does the error still occur?
-
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)
-
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.
-
Great job, everyone! first
- 84 replies
-
- mtasa
- forum stuff
-
(and 5 more)
Tagged with:
-
> 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)
-
What is the exact error message (send a screenshot or type it out)?
-
use an external http server with compression https://en.wikipedia.org/wiki/HTTP_compression
-
Do you mean the actual server (MTA Server.exe, deathmatch.dll etc) or just the resources?
-
Please show us your meta.xml file.
-
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)
-
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.
-
That won't work, but this might: local sourceTimer sourceTimer = setTimer(function () outputChatBox("1") killTimer(sourceTimer) end, 1000, 5)
-
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.
