07.01.2010, 13:41
I've had a little look at those functions in SA-MP.
My assembly knowledge is less than basic but I could tell that what I was discussing is not possible because all stuff they do is right there in those functions, they do not just call any underlying functions, I feel a bit stupid about thinking that was possible now.
So I really have no idea about how to bypass AMX when calling those natives.
You say you have a way of doing it.
I've had a look at some of your plugins namely YSF and that multithreaded one but I can't really figure out how you do it.
I saw something about pointer to members, I can understand why as I've read SA-MP is programmed in C++ so it will most likely use classes.
What I know about pointer to members is that if you want to call one you also need to provide a pointer to an instance of that object, so how do you know what classes SA-MP has and how do you get pointers to instances of them when it's running?
Perhaps a little example to get me in the right direction?
My assembly knowledge is less than basic but I could tell that what I was discussing is not possible because all stuff they do is right there in those functions, they do not just call any underlying functions, I feel a bit stupid about thinking that was possible now.
So I really have no idea about how to bypass AMX when calling those natives.
You say you have a way of doing it.
I've had a look at some of your plugins namely YSF and that multithreaded one but I can't really figure out how you do it.
I saw something about pointer to members, I can understand why as I've read SA-MP is programmed in C++ so it will most likely use classes.
What I know about pointer to members is that if you want to call one you also need to provide a pointer to an instance of that object, so how do you know what classes SA-MP has and how do you get pointers to instances of them when it's running?
Perhaps a little example to get me in the right direction?