-
Posts
2,973 -
Joined
-
Last visited
-
Days Won
3
Everything posted by 50p
-
I can't find any setElementData in this code. To get some data from element you first need to assign a value to it; otherwise you'll get nil. You need to debug it yourself (find setElementData, that sets the colshape "id"). Same here... There is no self._fadeTimer. Find it and make sure it's not killed before execution gets to that point.
-
If I'd let users to choose their own paths I'd have to redesign lots of stuff that is not going to happen any time soon. For instance: - There is a button "Start client and connect to local server" - which server should it connect to? - There is a button "Start server" - which server should it start? - There is a window "MTA Server configuration" - which server do you want to configure? It's not that I can change a few lines of code and it's done... It requires lots of changes. Besides, I don't know anyone that runs more then 1 local server to test their resources. Why would you want more than 1 server running on your home internet connection anyway? If that's all, you could open the settings form and add ONE text box, an "open directory" or "browse file" dialog as well as a button to open the latter. Unless you have some kind of profoundly illogical way of finding paths, all of this could rather easily be changed to work from the current directory instead of whatever directory is already there, and unless you refer to that path from like fifty different hardcoded locations, I don't see how replacing it would be hard nor time-consuming. On another note, I recommend either making this project open-source (more developers, faster progress, more features,) or at least not refusing people who offer to help for no reason. I'll make it then for YOU robhol! FOR YOU! You hear me?! ... -.-' I have absolutely no idea why people like you run 2 server which can barely handle 5-10 players or move it out of the place where it's meant to be Say what? I haven't refused you if that's what you're trying to say... Other people wanted to help too but they failed to pass the "test" (make a simple, easy to use Meta.xml Editor)... One said he can make it but the next day he said he's busy.. if you're busy how can you help me? Another one couldn't even try to make it, does he really want to help? If you want to help you must have time, good knowledge about C# and willingness. You'll fix this and that and forget about existence of Script Editor or you'll get bored of it and leave. I don't need that. If you want to continue that conversation speak to me on IRC. You know where to find me.
-
In MTA almost every element can have custom data (what is element data?). When you use setElementData function you need to specify the "key" (which I guess is the name). So if that parameter is longer than 32 characters you may get that fatal error. You get that error when you connect because that's when element data are synced with you but since the data is too big you get disconnected with Fatal Error 6.
-
It's not lots of changes but again, they want to use more than 1 path, don't they?
-
If I'd let users to choose their own paths I'd have to redesign lots of stuff that is not going to happen any time soon. For instance: - There is a button "Start client and connect to local server" - which server should it connect to? - There is a button "Start server" - which server should it start? - There is a window "MTA Server configuration" - which server do you want to configure? It's not that I can change a few lines of code and it's done... It requires lots of changes. Besides, I don't know anyone that runs more then 1 local server to test their resources. Why would you want more than 1 server running on your home internet connection anyway?
-
We can't really help you because that's not all code that's responsible for "your" (if it was your code, you wouldn't ask that question here) variables. KillTimer throws a warning because self._fadeTimer is not a valid timer (simply, read the warning message). The error about comparing nil with number: you get that because id is not a number, it's nil... what it tell you is that theShape has no "id" custom data.
-
I just copy'pasted that line into my map file and I didn't get the Fatal Error 6... I checked MTA source why it gives you Fatal Error 6 and found out that it's usually when MTA tries to get custom data. Custom data name can not be greater than 32 characters. Try to stop every resource and run only the one with your map file, then connect.
-
Thanks, but I've gone too far with this project to give up now and start something different but hopefully there is someone else that would give it a go. Although, I'm not sure if anyone wants to download Eclipse for Java and Java Runtime Environment just to get LuaEclipse to work, at least I couldn't be bothered.
-
You don't do it that way: element visibleTo=(recipient) Wiki tell you what are default arguments by using =. You just use the element that will receive the text. Therefore: outputChatBox("PM from" .. sender ":" .. tostring(message), recipient ) Remember to make sure the returned value from getPlayerFromName is not false. Like: if recipient then outputChatBox("PM from" .. sender ":" .. tostring(message), recipient ) end If you don't do that, you will get warning/error messages. Also, login as admin and use the debug window by using debugscript command:
-
Use wiki a lot for reference. https://wiki.multitheftauto.com/index.ph ... putChatBox Look at the parameters. 2nd parameter is visibleTo. As you may already know, command handler function's 1st parameter is the player that entered the command, so you that to output text for him. outputChatBox( "hello world", player );
-
It seems like a bug. - Are you sure it's this line that cause the error? - Is it your local server? - Do you get that error as well or just other players?
-
I know the answer... Debug your script before asking question here. https://wiki.multitheftauto.com/index.ph ... a_variable
-
This is correct... I'm going to stop helping people at 5am.
-
- Are you sure you started the script? - Are you sure your script is updated? - Make sure you don't edit the resource in "resourcecache" folder. - Is this folder or zip resource? If it's zip resource, make sure you don't have a folder with the same name.
-
What do you mean nothing? Didn't you see anything in your chat box or sound did play? Besides, you don't have to use getThisResource in getResourceRootElement since getThisResource is default argument.
-
Basically, you just debug your code. After you call playSound3D your local sound variable will hold a value/data of what playSound3D returned. If playSound3D failed the sound variable will hold false. So, to find out what that sound variable is you need to show that to yourself with outputDebugString or outputChatBox functions. outputChatBox( tostring( sound ) ); -- you need to use tostring because playSound3D doesn't return string
-
Did you try my other point (no.2)?
-
1. Check your debug window for any warnings/errors. The command is: 2. Use outputChatBox or outputDebugString functions to display what playSound3D returned.
-
These are part of IntelliSense which I'm not going to program -.-' although it would be nice.
-
Try to see what playSound returned. Eg: outputDebugString( tostring( sound ) )
-
Every event is triggered when something occurs. Are you sure it's triggered? Try onClientPedDamage too.
-
Is the event triggered at all?
-
Because of the game speed? I'm 99% sure that game speed affects sounds, even original ingame sounds. If the game speed is too low you won't hear any music in your car, so that might be game speed issue.
