Method that sets a boolean in self crashes when played?
Hi,
I've been working freelance on new opensource technology for war clans to use; however, I've also stumbled upon problems while trying to instill new habits in myself. I attempted playing around with methods for compact code and more dynamic tables, but every-time I hit play-test using the code below server-side, it crashes.
09 | StatusChange = function (self, planted) |
10 | self.Safe = ( not planted) |
12 | while (self.Safe = = ( not planted) and wait()) do |
13 | self.Stability = (self.Stability < 1000 and self.Stability + (self.Safe and self.Rollback or - 1 )) |
14 | print ( 'Timer:' , self.Stability) |
15 | if (self.ServerElapsed < = 0 or self.Stability < = 1000 ) then |
22 | print ( 'Bomb has been' , (planted and 'planted' or 'defused' )) |
26 | terminal:StatusChange( true ) |
I've narrowed it down to this line right here:
1 | self.Secure = ( not planted) |
So does this mean I can't set previous values in a table through a method? I'm really confused and would appreciate help!