Jump to content




table expected, got nil


  • You cannot reply to this topic
2 replies to this topic

#1 billysback

  • Members
  • 569 posts

Posted 24 November 2012 - 06:30 AM

EDIT: actually, nvm I found the problem.

getting nil from this code should be impossible... errors tell me it isn't
95: local users = self.users
96: if users == nil then users = {} end
97: users[name] = { id, {} }
98: self.users = users

error:
APINAME:97: table index expected, got nil

the table "users" in self should be defined, but it was bugging so I tried to catch the bugs... still doesn't work.

#2 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 24 November 2012 - 06:36 AM

It says table index expected. Maybe "name" doesn't exist?

#3 billysback

  • Members
  • 569 posts

Posted 24 November 2012 - 06:42 AM

name does exist, it was me forgetting to add a return to a function ;)/>





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users