ALw7sH Posted January 30, 2014 Share Posted January 30, 2014 Hello I have Problem in Dashboars by Xiti when I buy next map only take money and Do not put next map what is problem ? i've added it to group admin Link to comment
G.KinG Posted January 30, 2014 Share Posted January 30, 2014 why you don't ask the owner Xiti ? Link to comment
ALw7sH Posted January 30, 2014 Author Share Posted January 30, 2014 why you don't ask the owner Xiti ? I do not know him I asked here because maybe there is one faced such problem Link to comment
ViRuZGamiing Posted January 30, 2014 Share Posted January 30, 2014 Use /debugscript 3 ingame and send us the Error + the scripts lines. Link to comment
ALw7sH Posted January 30, 2014 Author Share Posted January 30, 2014 Use /debugscript 3 ingame and send us the Error + the scripts lines. maybe the problem not from mod but from what ? Link to comment
ALw7sH Posted January 30, 2014 Author Share Posted January 30, 2014 any one can help me pls ? > Link to comment
.:HyPeX:. Posted January 30, 2014 Share Posted January 30, 2014 Just dont use stuff you do not know about, you have to combine the functions with the race. Link to comment
ViRuZGamiing Posted January 30, 2014 Share Posted January 30, 2014 Post the Lines of the script (not the whole script) Link to comment
ALw7sH Posted January 30, 2014 Author Share Posted January 30, 2014 Post the Lines of the script (not the whole script) I do not know what you mean but see this -- Buy a next map function buyMap(thePlayer,mapName,command) local account = getPlayerAccount(thePlayer) if not (isGuestAccount(account)) then local playerCash = tonumber(getAccountData(account,"cash")) if not (mapName == "") then if playerCash >= mapCost then if command then mapName = getMapName(mapName) else mapName = tostring(mapName) end if not mapTimer[mapName] then if not tableFind(mapQueue,mapName) then table.insert(mapQueue,mapName) outputChatBox("#0000FF[NEXT] #ffffff"..getPlayerName(thePlayer).."#FFFFFF has bought #0000FF"..tostring(mapName).."#ffffff!",getRootElement(),255,255,255,true) outputChatBox("#0000FF[NEXT] #ffffff"..tostring(mapName).."#ffffff successfully added to map queue!",getRootElement(),255,255,255,true) addStat(account,"buyedMaps",1) setAccountData(account,"cash",playerCash - mapCost) scoreboardRefresh(thePlayer) mapTimer[mapName] = setTimer(resetMapTimer,60000*35,1,mapName) if #mapQueue <= 1 then triggerEvent("onBoughtMap",getRootElement(),mapName) end callClientFunction(getRootElement(),"setMapQueue",mapQueue) else outputChatBox("#0000FF[NEXT] #FFFFFFMap "..mapName.." is already in map queue.",thePlayer,255,255,255,true) end else local remaining, executesRemaining, totalExecutes = getTimerDetails(mapTimer[mapName]) if remaining < 60000 then remaining = math.floor(remaining/1000).."#ffffff second" else minutes = math.floor(remaining/60000) remaining = string.format('%02d',minutes).."#ffffff minutes" end outputChatBox("#0000FF[NEXT] #FFFFFFYou have to wait #0000FF"..remaining.." to set this map!",thePlayer,255,255,255,true) end else outputChatBox("#0000FF[NEXT] #FFFFFFYou don't have enough money to set a map!",thePlayer,255,255,255,true) end else outputChatBox("#0000FF[NEXT] #FFFFFFPlease select a map from the list first!",thePlayer,255,255,255,true) end else outputChatBox("#0000FF[NEXT] #FFFFFFA map is already set at the moment! Please try again later.",thePlayer,255,255,255,true) end end Link to comment
ViRuZGamiing Posted January 30, 2014 Share Posted January 30, 2014 Line 1275 of the dash_c.lua file and line 2021 of dash.lua are needed. Link to comment
ALw7sH Posted January 30, 2014 Author Share Posted January 30, 2014 Line 1275 of the dash_c.lua file and line 2021 of dash.lua are needed. dash_c.lua function drawMapInfo() local tick = getTickCount() - mapInfos.tick local progress = tick/700 if progress >= 1 then progress = 1 end local alpha = interpolateBetween(0,0,0,255,0,0,progress,"Linear") dxDrawText(mapInfos.titles[mapInfos.count],0,sY-dxGetFontHeight(3*scale,"default-bold")-dxGetFontHeight(5*scale,"default-bold"),sX,sY-dxGetFontHeight(3*scale,"default-bold"),tocolor(141,182,205,alpha),3*scale,"default-bold","center","center",false,false,true) dxDrawText(mapInfos.data[mapInfos.count],0,sY-dxGetFontHeight(5*scale,"default-bold"),sX,sY,tocolor(255,255,255,alpha),5*scale,"default-bold","center","center",false,false,false,true) end dash.lua 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 Link to comment
ALw7sH Posted January 31, 2014 Author Share Posted January 31, 2014 no one can help me ? >< i need to rapier it i have clan server >< 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