Skip to content

Scripts for beginners.

User Avatar
#245
Auto-translated
}{0TT@6bI4
I'll warn Syrvyus that calling `contatins` without parameters causes the game to crash.
Gerter, will it crash if the parameters turn out to be nil?
It will crash only if you pass nil instead of a table (you can actually fix this bug in the code). But this situation seems extremely unlikely in practice, because you need to specifically pass nil to the function for this to happen. That is, even if you write:
x = {}
x = nil
if contains(x, 1) then...
there will be no crash.
Нет войне.