So, I tried it before and got an error but now suddenly I'm able to have a record defined within a record. IE Player.Data.HP or something to that effect suddenly works for me now.
Edit: It would appear as tho as long as the record contained within the main record appears first in the GUI list it works otherwise it gives a syntax error.
Yes, because when compiler goes "down" the code, he sees (in 1st record) that you're referring to second, which was not defined yet, so it doesn't know what it is (hence the syntax error).
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So, I tried it before and got an error but now suddenly I'm able to have a record defined within a record. IE Player.Data.HP or something to that effect suddenly works for me now.
Edit: It would appear as tho as long as the record contained within the main record appears first in the GUI list it works otherwise it gives a syntax error.
Yes, because when compiler goes "down" the code, he sees (in 1st record) that you're referring to second, which was not defined yet, so it doesn't know what it is (hence the syntax error).