Jump to content

xmlNodeGetChildren BUG?


Bonsai

Recommended Posts

Posted

Hey there,

I just discovered some kind of problem that never happened before.

xmlNodeGetChildren doesn't get all the children. It always misses the first one for some reason.

I think, but not sure, this problem happened after some update I was forced to install.

The same resource is still working on my older version server at least.

Someone knows whats going on here? :o

Bonsai

Posted

How that happened?

I got some message to install a update if I wanna play on a server, so I did.

Before, everything was working fine.

Hmm

Posted

The children table has an index starting with zero, you have to loop it using pairs, not ipairs. As ipairs always start from index one, therefore, missing the first node in the child table.

Posted

I think this is more serious.

This was fixed already, but I got the same buggy version again after I reinstalled MTA.

Why are there versions with known bugs still around?

I just used the version that you get from Download button on Main site.

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