eAi
Retired Staff-
Posts
2,986 -
Joined
-
Last visited
-
Days Won
1
Everything posted by eAi
-
That definitely looks like some graphics driver bug that MTA is tickling... I'd suggest updating your graphics drivers. It's probably something MTA could work around, but it'd be very hard to find out what the problem is...
-
The problem is, you have to use callbacks - scripts cannot run for more than a few milliseconds before MTA will terminate them. While your script is running, nothing else is happening (MTA is basically single-threaded in most respects), so you can't wait for something to happen, because it won't! I agree it would be useful, but as with most server-client systems, callbacks are required. There might be some use for a simplified system for sending messages that avoids events. The only real advantage I can see in doing that is reducing the overhead (events are quite computationally expensive) - the code overhead of events is fairly minimal. You're right though that element data is really not an ideal way to sync information. The network cost alone could be quite significant with a large number of players. Most people seem to cope with using events - I'm not sure how well you know the system, but it can be quite powerful if used correctly, even if it is overkill for some simple uses.
-
There's no auto-aiming at all. Just lag compensation.
-
The issue is that server and client communication is (and has to be) asynchronous. You could wrap things up with callbacks, using events as the underlying basis for them, though this is roughly what events are anyway... THIS IS PSEUDO-CODE! Don't expect it to work, just an idea how you might do it... replies = {} uniqueid = 0 function getData(type, callback, ...) replies[uniqueid] = callback triggerServerEvent("requestData", uniqueid, type, {...}) end addEvent("receieveData", true) addEventHandler("receiveData", getRootElement(), function(id, ...) replies[id](...) replies[id] = nil end) handlers = {} handler["getNumber5"] = function() return 5 end addEvent("requestData", true) addEventHandler("requestData", getRootElement(), function(id, type, ...) triggerClientEvent("receiveData", id, handler[type]) end getData("getNumber5", function(number) print(number) end)
-
MTA doesn't officially support Windows 2000 (which is now 10 years old!)
-
Well, you can, if you have the ACL right that lets you restart protected resources
-
If you're asking if the MTA site content is copyright, yes it is (as you can see at the bottom of the page). If you'd like to copy it for some reason, please ask and explain what you want to copy and why.
-
The windows server comes in the 1.0.1 installer. You should have it installed already if you have MTA installed. Check your Program Files/MTA San Andreas folder.
-
You should use server-side scripts where you possibly can. Client-side scripts are out of your control, and can potentially be hacked. Anything you do client-side that can be seen by other players you should carefully check server-side, or cheaters can easily take advantage of it. MTA's scripts were originally server-side only for exactly this reason.
-
Read the FAQ: https://wiki.multitheftauto.com/index.ph ... Editor#FAQ
-
That isn't the syntax for addCommandHandler - lua doesn't support named arguments, so remove the 'restricted =' and 'caseSensitive =' parts. Can't really tell about the rest. Use debugscript 3 in the console - Lua would have given you an error about that.
-
Try changing your community name...
-
You can get an updated votemanager from the community site.
-
I assume you're running 1.0 - not an earlier dp version?
-
You tell us what the errors say. Just because you don't understand them, it doesn't mean they don't mean anything.
-
Why not use a zip file, that way your map doesn't need to be extracted, it can just be placed in the resources folder - that's considerably easier!
-
Feel free to come and ask questions on our IRC channel - you'll get a faster response that way. https://mtasa.com/irc.html
-
Try reading https://wiki.multitheftauto.com/index.ph ... ement_tree and https://wiki.multitheftauto.com/index.ph ... ent_system These explain what the purpose of 'source' and 'getRootElement' are. If you have any questions afterwards - or don't understand those pages - ask!
-
Has anyone experimented with LuaEclipse? http://luaeclipse.luaforge.net/ Eclipse, in my experience with Java and python, provides a very good IDE, better than VS does with C++ (though that's due to the language more than the IDE). Building on top of LuaEclipse to provide MTA integration might make sense.
-
https://community.multitheftauto.com
-
The point is that you might want to have multiple command handlers going through one function. You can them use the 'cmd' variable to tell which one is actually being called. In general usage, you can ignore it.
-
MTA should populate the list of resolutions available using the list that GTA can provide... I don't know if it does...
-
Entering from the outside world...
-
Well aren't you always entering from interior 0 - the normal gta world? Why are you doing getElementType on interior - it isn't an element - it's the number of the interior the player is entering...
