Menu

#22 Error when trying to call a state in a global

open
nobody
None
5
2012-10-16
2012-02-10
Maslo Bade
No

'state(string)' is a 'method' but is used like a 'type'

attitude()
{
if(mood == "happy")
{
state happy;
}
if(mood == "sad")
{
state saddness;
}
}

Discussion

  • Maslo Bade

    Maslo Bade - 2012-02-10

    The script works fine in-world.

     
  • Ima Mechanique

    Ima Mechanique - 2012-02-11

    Hi, what version are you using?

     
  • Maslo Bade

    Maslo Bade - 2012-02-11

    version 2.44

     
  • Ima Mechanique

    Ima Mechanique - 2012-02-12

    Confirmed in master branch.
    Is this new behaviour or was it occurring with previous versions?
    If it's new I may be able to find time to fix it, if old probably not. One of the background tasks I have going is to incorporate lslint into the editor by default and use it for syntax checking, as it handles the LSL compiler's quirks far better than C# can.

     
  • Maslo Bade

    Maslo Bade - 2012-02-16

    This is not a new behavior. I twas in the older versions as well. I'm hoping the improvements you are planning will fix this problem. Until then I would say it's fine to close this ticket.

     

Log in to post a comment.

MongoDB Logo MongoDB