Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Instance table.
#2
That's some kind of bug in CBot interpreter. But don't worry, there is a simple workaround - in CBot you don't need to excplictly specify the size of the array using "new".
Do it like this:
Code:
public class points
{
    int     N,S,W,E;
    point point_position;
    float point_orientation;        
}

extern void object::New()
{
    points[] DB;
    DB[0] = new points();
    DB[0].N = 1;
    DB[1] = new points();
    DB[1].S = 1;
}

PS. I think I know what you are working on Tongue


Messages In This Thread
Instance table. - by pumanitro - 02-04-2015, 11:23 AM
RE: Instance table. - by krzys_h - 02-04-2015, 03:13 PM
RE: Instance table. - by pumanitro - 02-04-2015, 05:15 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)