Jump to content
Sign in to follow this  
Scud

Cant count ??

Recommended Posts

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

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
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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×