diabeloo Posted September 16, 2013 Share Posted September 16, 2013 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
Castillo Posted September 16, 2013 Share Posted September 16, 2013 On which script are you executing the "loadMapInfoAll" function? Link to comment
diabeloo Posted September 17, 2013 Author Share Posted September 17, 2013 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
Castillo Posted September 17, 2013 Share Posted September 17, 2013 What that error means is that the function is not defined. Link to comment
diabeloo Posted September 17, 2013 Author Share Posted September 17, 2013 And how can i fix it ? im not such pro scripter . Link to comment
Castillo Posted September 17, 2013 Share Posted September 17, 2013 That's why I'm asking, where is that code you posted located? is it in server.lua? Link to comment
diabeloo Posted September 17, 2013 Author Share Posted September 17, 2013 dashboard3/server.lua i posted the file location in first post Link to comment
Castillo Posted September 17, 2013 Share Posted September 17, 2013 Well, you'll have to post the entire script, or send it over PM. Link to comment
diabeloo Posted September 17, 2013 Author Share Posted September 17, 2013 it would be easier if u would add me on skype cuz it would be easier for u to see the file in notepad my skype is jeffhardyenigma2 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