Jump to content

MTA 1.4


Et-win

Recommended Posts

Posted

Hello people,

I just have a question. Do you guys have the same problem as me, that if you are scripting and your script just is correct, but it doesn't work and after changing 1 thing in the script (e.g: Putting outputChatBox in the script to check where the script stops) and that it suddently works after that, while you didn't change anything? (And yes, I did refresh and restart the script(s))

I had this several times, but I don't know or it's MTA 1.4 or just my laptop (Since I had more problems with it, lol.)?

Posted (edited)

What is going on!

This just happened to me today in mta 1.3 but didn't knew that this is global thing.

Edited by Guest

Multi Theft Auto Player since middle of 2011.

Everybody want to act Crazy/Smart/Intelligent/Different/Unique/Innocent and Thats why I am Perfect.

Posted

Same thing happened to me today actually, didn't pay much attention to it (thought i may have done something wrong but i doubt it) but if it didn't happen to just me than there might be some kind of issue.

Lua Scripter

?ucet=miki_cz

Owner of mshost.cz MTA portal.

Posted (edited)

Even though I haven't noticed anything like this, maybe its related to the /restart command.

Try to use /stop and then /start it again.

Edited by Guest
  • MTA Team
Posted
And yes, I did refresh and restart the script(s))

Wrong. You need to do 'refreshall', 'refresh' only detects newly added resources. refreshall does also auto-restart resources once they changed, if they were running, indicating that you used 'refresh' only.

Still, I reported this because it's not very normal.

It's caused by your own mistake and not a bug.

Posted

Well /refreshall should solve stuff like imported files that doesn't refresh properly or if you add new files, though this where about regular lua scripts with regular edits. Could you specify when this issue appears more detailed? Exactly what did you changed. I've seen this only when replacing radarblips or adding new files that isn't lua files into existing resources.

Posted

Seems strange thought since 'outputChatBox' won't have any effect on that. What did you tried to do with your script, just wonder if it was regular edits of some lua files, adding new files or replace existing files like images. Maybe you forgot to upload the file (if you're using ftp or network paths).

  • MTA Team
Posted

You're saying it happens sometimes. Until we know more about it/whether it's a bug or not, try to use 'refreshall' for a period and see if it happens even once again or not/less, that might be important to determine the problem, though I think refreshall is a bit more reliable for it, like MrBrutus said:

Well /refreshall should solve stuff like imported files that doesn't refresh properly or if you add new files
Posted

I was either changing or adding stuff to my Clan War System. (Just changing the current script, not adding or removing, just editing.) 'outputChatBox' has indeed nothing to do with this, but I restarted my script 2 times when it didn't do it's job because I was sure it should work. Then I added 'outputChatBox' to see where it stopped working, and suddently it did work after the restart. Everything before the little change did work, but my changed thing didn't, only after what I just said. This is why I think that it doesn't always refresh the script when restarting it. I'm using my local server and never had problems with this before. About /refreshall: It takes too long to constantly do this when you are just adding like 1~5 lines and have to test or it works.

Currently using what Bonsai says: /stop and /start (On a bind, just like /restart). I will move on to and try /refreshall if I don't had any problems tomorrow.

Posted

/Stop and then /start does probably exactly the same as /restart, can't see why there would be multiple functions doing the same things. And lua are like other scripting languages executed from the top then it goes down until it finishes or crash in the middle of a job. How about /debugscript? I guess you used that but it could be a regular bug in the script as well. Even if it looks like it should work the human eye just aren't good enough to detect all possible issues.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...