Loop errors
#1

Umm, what?...

PHP Code:
#define MAX_RNDO 300
new RandObj[MAX_RNDO];
//
DeleteObjects()
{
 `
  for(new i; i < MAX_RNDO; i++) // line 4191
    {
        DestroyDynamicObject(RandObj[i]);
        RandObj[i] = -1;
    }
    return 1;

Errors:
Quote:

(4191) : error 029: invalid expression, assumed zero
(4191) : warning 215: expression has no effect
(4191) : error 001: expected token: ";", but found "for"

Reply
#2

Is there any code above that?
Reply
#3

M I the only one who sees. ` before for loop? Also set i=0
Reply
#4

As iLearner said
Code:
`  for(new i; i < MAX_RNDO; i++) // line 4191
Reply
#5

Quote:
Originally Posted by iLearner
View Post
M I the only one who sees. ` before for loop? Also set i=0
You're right. I hadn't noticed it.
Reply
#6

Oops, apparently I'm blind. Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)