Scud 0 Posted April 3, 2004 in a sqs file I need a method of counting this is a basic sample of what I have got so far " _n = 0 #loop _n = _n+1 if _n >= 10: exit goto "loop" " In game I keep getting 'unknown operator' err. re: "if _n >= 10: exit" line. I have tried many variants of this code ie: if (_n >= 10): exit do I have to define _n as an interger? if so how? Share this post Link to post Share on other sites
Harnu 0 Posted April 3, 2004 Not sure if it matters, but I always use parantheses and the ?: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_n = 0 #loop _n = _n + 1 ?(_n >= 10):exit goto "loop" Share this post Link to post Share on other sites
Scud 0 Posted April 3, 2004 Quote[/b] ]I have tried many variants of this code ie:if (_n >= 10): exit doh - thanx you made me realize another dumn typo I keep getting flashbacks to DOS and basic years. used the old if instead of ? - dah Thanx Share this post Link to post Share on other sites
Harnu 0 Posted April 3, 2004 Hehe, good old typos. They have made me try pulling out my hair looking for what I've done wrong at time, I always overlook the little things. Share this post Link to post Share on other sites