John Posted July 9, 2024 Share Posted July 9, 2024 Написал следующий код local t = {100} print(t[0]) Но выводит почему-то nil. Подскажите в чем проблема Quote Link to comment Share on other sites More sharing options...
TechnoViking Posted July 9, 2024 Share Posted July 9, 2024 В lua индексация таблиц начинается с единицы. Попробуйте так: local t = {100} print(t[1]) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.