Jump to content

Next map buy bug.


diabeloo

Recommended Posts

Hey i would like to ask u for help .

my problem is that on the userpanel that i have map buy is bugged ( it has a map quene too ) , when i buy a map it says in console :

ERROR: dashboard3/server.lua:1930: attempt to call global 'loadMapInfoAll' (a nil value)

local g_MapInfoList 
  
function loadMapInfoAll(resName) 
    local rows = executeSQLQuery( 'SELECT * FROM race_mapInfo' ) 
    g_MapInfoList = {} 
    for i,row in ipairs(rows) do 
        local map = getResourceFromName( row.resName ) 
        if map then 
            local mapInfo = getMapInfo( map ) 
            mapInfo.infoName = row.infoName 
            mapInfo.playedCount = row.playedCount 
            mapInfo.lastTimePlayed = row.lastTimePlayedText 
            mapInfo.hunters = row.hunter 
            mapInfo.toptimes = row.toptimes 
        end 
    end 
end 
  
  
function getMapInfo( map ) 
    if not g_MapInfoList then 
        loadMapInfoAll() 
    end 
    if not g_MapInfoList[map] then 
        g_MapInfoList[map] = {} 
    end 
    local mapInfo = g_MapInfoList[map] 
    if mapInfo then 
        return mapInfo 
    end 
end 
  
  
function sendMapInfoToPanel(thePlayer,mapName) 
    if mapName then 
        mapInfo = getMapInfo(findMap(mapName)) 
        author = load(findMap(mapName)) 
        mapInfo.author = author.info['author'] 
        toptimes = loadToptimes(mapName) 
        mapInfo.likes = getLikeCount(findMap(mapName)) 
        if mapInfo then 
            callClientFunction(thePlayer,"setMapInfo",mapInfo,toptimes) 
        end 
    end 
end 

can some tell me whats wrong on it ? ;/

Link to comment
On which script are you executing the "loadMapInfoAll" function?

what u mean with that? the script name is dashboard , i changed it like 3-4 days ago from dashboard3 to dashboard .

it doesnt matter , just the map buy is bugged cuz the map is not set , i gave admin rights to the dashboard and nothing .

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