(I should stop the stream of Lua problems but when I want to find something, well, I can't find it.)
I'm trying to change the automatic ring ammo when "vauto == '1'".
The problem is that I can't.
At the start I use "local vauto = 0" to initialize it, then a function where it's first argument is "vauto". I set it to 1 ingame and printing the variable gives me 1.
Now, after I close the function, I open a ThinkFrame() hook where it should check if "vauto == '1'" and give me ammo, but vauto is nil.
What am I doing wrong?
---------- Post added at 08:17 PM ---------- Previous post was at 07:57 PM ----------
I don't know how but I fixed it.
I'm trying to change the automatic ring ammo when "vauto == '1'".
The problem is that I can't.
At the start I use "local vauto = 0" to initialize it, then a function where it's first argument is "vauto". I set it to 1 ingame and printing the variable gives me 1.
Now, after I close the function, I open a ThinkFrame() hook where it should check if "vauto == '1'" and give me ammo, but vauto is nil.
What am I doing wrong?
---------- Post added at 08:17 PM ---------- Previous post was at 07:57 PM ----------
I don't know how but I fixed it.
Last edited: