Jump to content

Map problem on Linux Server


Belarrius

Recommended Posts

  • 1 month later...

doesn't want to assume a new topic, path to the image doesn't work in the first post, but I suspect that it is a similar problem

serwer 1.1 tested on Windows Home Edition PL 32bit (last MTA:SA 1.1.1 update), does not work on:

MTA:SA 1.1.1 (Release 2 (build 3544) - Updated 12th December 2011)

Datacenter: http://www.ovh.fr (lokalizacja Francja)

- OS: GNU/Linux

- CPU: Intel Core i7 Processor

- RAM: 16GB

- Łącze: 100mbit

edited reference to the row, line of the error message corresponds to the numbering of the code

ERROR: race/race_server.lua:5: attempt to perform arithmetic on field 'size' (a string value) 

    -- if map isn't made in the new editor or map is an old race map multiplicate the checkpointsize with 4 
    local madeInNewEditor = map.def and map.def:find("editor_main") 
    if not madeInNewEditor or map:isRaceFormat() then 
        for i,checkpoint in ipairs(g_Checkpoints) do 
            checkpoint.size = checkpoint.size and checkpoint.size*4 or 4 
        end 
    end 

tonumber function uses only moves the problem into another line of code, where I had to change again

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...