I have had such a problem as well when I was still scripting in c-script, but that was because I called the function before I defined it:
Code:
test(55, 6);
...
function test(par1, par2) {
...do stuff;
}
When using 1 parameter, you can call a function that is defined later on, but when you want to use more parameters, you had to prototype the funcion before calling it:
Code:
function test(par1, par2);
...
test(55, 6);
...
function test(par1, par2) {
...do stuff;
}
Though your example does not shows a problem, maybe this example is not identical to your real code? The problem seems exactly the same...
Can't find the thread anymore where this problem was explained, grr.
