• Problems with seemingly ok script
    3 replies, posted
-snip- Problem solved thanks to NullPoint and Nevec Can a mod close this thread? Thanks
[lua] if self.ShouldAttack = true then[/lua] should be [lua] if self.ShouldAttack == true then[/lua] because you are checking for equality not assigning values to variables. [editline]07:19PM[/editline] You have also done that on many other occasions.
[lua]if self.ShouldAttack = true then[/lua] Should be '==', not '='. [b]Remember:[/b] = is for assignment, == is for comparison.
[QUOTE=NullPoint;19707146] if self.ShouldAttack = true then should be if self.ShouldAttack == true then because you are checking for equality not assigning values to variables. [editline]07:19PM[/editline] You have also done that on many other occasions.[/QUOTE] Ah, thanks. /facepalms I'm an idiot [editline]07:21PM[/editline] [QUOTE=Nevec;19707177]if self.ShouldAttack = true then Should be '==', not '='. [B]Remember:[/B] = is for assignment, == is for comparison.[/QUOTE] I'll remember that. Thanks too
Sorry, you need to Log In to post a reply to this thread.