
Zitat von
Razor:
Wont work soon as i turn int 2 higher than 0 it crashes

As I said: int 2 seems to be a
pointer. So let it on zero and play with the other parameters while looking at the return value (the two numbers right to the function names).
It is badly to see, that you have no further knowledge but only copy & paste. You never try to understand the things you copy!? It is very frustrating...