Jump to content

What the hell happen?


DarkLink

Recommended Posts

Okay guys, when I start my server now and joins, it doesnt do what was supposed to do..

Before, I had GUIs.. right at the event : onClientResourceStart

Now that events arent triggering.. I didnt change anything at that place, I have no errors on console..

And I notice that its failing to connect to game-monitor when I try to run the server.

I have all ports open, me and my friend can connect to the server.

But its not doing things like was doing before..

The first things were the GUIs that appear right "onClientResourceStart".

Thanks alot guys!

Link to comment

LOL! I discover it now that each function on lua files have a restriction of maybe 15 lines of code or so.. because I put more code in there today and didnt notice that the 'end' wasnt closing the function :S

Now I delete some lines and 'end' is working on the function.

Does this happen on lua functions ? can only have a few lines of code?

thanks.

Link to comment

There are no such limits in lua, you made a typo somewhere (as you know one misplaced letter can change much).

You did not see the error in the server console, becouse client scriprs are runed by client, not the server...

Use "/debugscript 3" command in game, you can also check the debug log ".../MTA San Anderas/MTA/clientscript.text" - the file collects errors from all servers you visited - it will be very large

Link to comment

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...