-
Posts
2,973 -
Joined
-
Last visited
-
Days Won
3
Everything posted by 50p
-
Ok, is it bug window with that message or is it a small window asking you to make sure that you installed MTA correctly? Can you make sure the path stored in settings.conf to the server is correct (MTAServerPath)? If it isn't, try to change it manually and see if it works.
-
By saying won't work with MTA 1.1 you're not helping at all. It works fine for me so how am I supposed to know what to fix if it works? Also, by saying "Receive source code and upgrade it or delete it", you'll never get the source code.
-
Cancel the onClientClick event if the click position is in the boundary of the button. local imgPos = { guiGetPosition( editor.main.imgOther, false ) }; local imgSize = { guiGetSize( editor.main.imgOther, false ) }; if ( clickedX > imgPos[ 1 ] and clickedX < imgPos[ 1 ] + imgSize[ 1 ] and clickedY > imgPos[ 2 ] and clickedY < imgPos[ 2 ] + imgSize[ 2 ] ) then cancelEvent( ); end This could be a useful for collision detection (only for rectangular shapes) function that you get in ActionScript (hitTest).
-
Have you tried my GUI classes? That's probably what you may be interested in. It makes scripting GUI easier and more readable. It also has a feature for dragable controls. viewtopic.php?f=108&t=24122
-
I remember before I started working on MTA:SE, I wanted to make a meta generator but I thought it was too simple and nobody would use it because I bet not many people used my meta generator written in JavaScript, so I looked ahead where I could use meta-generation-code and came up with idea for MTA:SE. Anyway, let me give you a suggestion, for the "server" or "client" of "Config Tag", I'd use a dropdown list or 2 radio buttons instead, otherwise people can type in anything they want.
-
Lua is case-seisitive, so are function names. If you export "opgt" but the actual function name is "opGT" then that function will never be called.
-
You can have a look at this old resource: https://community.multitheftauto.com/ind ... ils&id=186 Simple and easy to configure. I hope it still works
-
As far as I remember, MTA uses SQL for accounts unless it's changed again but I doubt. So, no need to create another table for that.
-
The point of proxy is to track any action that took part in the table (that is, set values or get values). What the hell is the point of that? I'm telling you now, you may probably know already that when you assign a table variable to another variable, it will copy the reference of the table. That means, if you do any modifications to the referenced table, the changes will take place in the original table as well. For instance: t = { 1, 2, 3 }; local _t = t; -- assign the reference of table "t" to table "_t" (that is proxy) print( t[ 1 ] ); -- it will print 1 _t[ 1 ] = 5; -- change the value of t[ 1 ] Yes, that is right, t[ 1 ]! print( t[ 1 ] ); -- it will print 5 I hope you understand now.
-
I'm not sure about variables changes but as someone told you, metatables are the way to go. One thing I'd advice you as well is OOP in Lua. If you want to know how to track your variable change, visit this website: http://www.lua.org/pil/13.4.4.html Also, have a read here: http://www.lua.org/pil/13.4.1.html to know more about __index and http://www.lua.org/pil/13.4.2.html for __newindex. After visiting the first link, you should know enough how it works, but I suggest you read them all lessons to have better understanding. I hope it helps.
-
There is no need for new variable, simply return the results: function ms2sec( ms ) return ms / 1000; end function sec2ms( sec ) return sec * 1000; end This is all simple maths.
-
I'm asking author of the topic, he knows what he wants but has 2 different questions which I can answer but the thing is I don't know which one to answer. I haven't got time to answer all the questions on the forum.
-
The question in the topic name doesn't match the question in your post. What exactly do you want to know?
-
viewtopic.php?f=91&t=26541
-
OK. Please, tell me when exactly does it crash? When you double-click the file in resource explorer?
-
function loadShop() itm(0.1714,0.1787,0.1597,0.0652,"Flip","Flip your car for $500") -- this for test end Tell me please where is the itm function in your code? Why didn't you get error message?
-
Have you guys installed MTA in different directory or have you installed it in the same folder as the 1.0.5 or any previous version you had installed? I was thinking that it loads the resources from old MTA but then again, you had problems with loading [resources] and now you don't.. That's very weird. I'm doing my best. If you want to use the 0.2.9.3 which hadn't crash on you then here is the link: http://scripteditor.beta.mtasa.com/file ... .2.9.3.zip (just extract those files into your SE folder).
-
https://community.multitheftauto.com/ind ... ils&id=234
-
If I take all time I need, you get such messages:
-
That's really hard for me to find the problem due to not having idea where the problem is, if it works perfectly on me and I've never ever had that problem I guess, it's time for huge research and each line checking, be patient it'll take some time...
-
Can you send bug report? Or does it crash with windows window? If you can send the bug report then please do so. BTW, I've added log feature so I can log everything but it'll take some time to go through all the code and log all the sensitive areas.
-
Do you mean you still can't see any files? Are the files that you can't see from the subdirectories resources or are they from root resources folders? Because mine works just fine What does it say at the status bar when you start SE? It should say how many resources and files has been loaded. I think I'll need to add logging feature to know every single step that people make since from what you are people saying nothing makes sense because when I try to reproduce the crash, I can't because it works just fine and I can't fix something that is working and don't have a clue why it could crash. I'm going to add some sort of log system so you can check the log file and tell me more information.
-
Are you going to create 10's of topics asking single questions about that video? Why don't you make another topic and ask for music title from that video as well? Please, keep the forum tidy and ask all your questions regarding this video in 1 topic. To answer your question, best speak to the author of the map or download the map if it's available for download and you will have all the information you need. There are many weather IDs which you can check yourself. You can also make your custom sky gradient, so why not try it?