Jump to content

svp error


stefutz101

Recommended Posts

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...