Hi Ddlv,
The way it is written. The if is NEVER executed and buff is never loaded as near as I can tell because I can never find out what buff contains by using the printf function.
Try it if you haven't.You'll see why I'm so confused.
If I change the int count=1 to var count=0 and then compare to the var the program functions as expected. I'm happy. I found a way to make it work.
I just don't know why it makes a difference on the type of variable defined.
Shouldn't the script function the same way for var count=0 and int count=1 or bool count=true? Chnage the variable declaration type and see what happens.
P
Last edited by Pork; 09/20/13 17:07.