stefutz101 Posted September 2, 2015 Share Posted September 2, 2015 Hi . I'm trying to solve bugs and error at my servers and i can't solve this one . http://iceimg.net/images/2015/09/02/mta ... -02-08.png I searched "tab " but nothing happen , i think "tab" isn't definied . But i dont know what did that "tab " what kind of index is. Thanks in advance. function table.size(tab) local length = 0 for _ in pairs(tab) do length = length + 1 end return length end Link to comment
MTA Team botder Posted September 2, 2015 MTA Team Share Posted September 2, 2015 Replace that function with this one: It will show you the script, which caused the warning. function table.size(tab) if type(tab) ~= "table" then error("table.size: argument tab is not a table", 2) end local length = 0 for _ in pairs(tab) do length = length + 1 end return length end Link to comment
stefutz101 Posted September 2, 2015 Author Share Posted September 2, 2015 Lol . Nick trick , solved , thanks ! Link to comment
stefutz101 Posted September 2, 2015 Author Share Posted September 2, 2015 Now command work but i have a question . Why when i start server it spawn a Walton(id:478) on the map ? I looked in all server files and i search for that id and nothing . And i have another question why vehicles start when server start but vehicles added by me dont appear ? I must type /svp to spawn my vehicles . FIRST PROBLEM SOLVED !! Thanks in advance! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now