Jump to content

Yurigarga

Members
  • Posts

    70
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Yurigarga

  1. CPU usage statistics of mta after 10 minutes
  2. CPU usage statistics when mta sa is on: CPU usage statistics with mta sa turned off: Can this method be used as a solution? https://github.com/multitheftauto/mtasa-blue/issues/2856 Even though I'm not on any server, when I start the client, GTASA and my CPU get into a huge battle for 10 minutes. When I join a server without waiting for this war to end, the game becomes unplayable and CPU usage never drops to normal levels. Could you consider updating the launcher? Can't you reduce CPU usage while the game is running or in the launcher menu? This game is a game preferred by players with low system requirements, and in my opinion, its most important purpose is to be at a level that can meet the demands of these players.
  3. I encountered this error because I was using the old version of the DGS script. solved
  4. DGS = exports.dgs function clientsideResourceStart () local numberList = DGS:dgsCreateComboBox ( 10,270,150,30,"test",false ) local item = DGS:dgsComboBoxAddItem ( numberList ) local myItem = DGS:dgsComboBoxSetItemText ( numberList, item, tostring( math.random(0, 10) ^ 100 ) ) DGS:dgsComboBoxSetItemData( numberList, item, "Test" ) local myItemData = DGS:dgsComboBoxGetItemData( numberList, item ) outputDebugString ( myItemData ) end addEventHandler ( "onClientResourceStart", resourceRoot, clientsideResourceStart ) c.lua:7 call: failed to call 'dgs:dgsComboBoxGetItemData' [string"?"] I'm about to go crazy. Why does it give an error???? WHYYYYY!!!!!?????????
  5. Yurigarga

    Timed out

    hello when connecting to my server I'm getting a "timed out" error. Is there a penalty imposed by you? server ip adress : 217.195.202.67:22004
  6. You can't ban me for making fun of people who make fun of me. Everything I said I said during the fight. Is this your sense of justice? You're banning me for making fun of him. I am so angry right now that I cannot remain silent about the injustice done to me! @Dutchman101 I explain to you, you find my explanations ridiculous and you make fun of me. Look, you're tarnishing me and my name those people were previously banned from mtasaturk.com with proof. These are the people who complained about me
  7. I needed help urgently and accidentally tagged the Turkish moderator. Came and banned me. This is not the first ban shot. He had previously unfairly banned me from Discord. Your Turkish moderator is not using his authority correctly. He forbids me when we argue with his close friends. He does nothing to his friend who cursed me. Discord ban has not lifted for 1 month. Please help me.. Discord account: 'App#1903
  8. no none of these are my problem. I am the new owner of this server. The former owner spammed the server list and got a penalty. scoundrel ... Please have someone in charge help.
  9. Help me please server name : new gaming server ip : mtasa://217.182.178.164:22003
  10. Error 1-292. line ====== Bad argument @ 'engineApplyShaderToWorldTexture' [Expected material at argument 1 ,got nill]2-293.line ======Bad argument @ 'dxSetShaderValue' [Expected material at argumenr 1.gotnill] function Nisangah3Aktif() engineApplyShaderToWorldTexture(shader, "siteM16") --292 dxSetShaderValue(shader, "gTexture", dxCreateTexture("dosyalar/resim/nisangah3.png"))--293 _outputChatBox ( "#00ff00Nişangah Değiştirildi", 255, 0, 0, true ) local file = xmlLoadFile("ayarlar.xml") if file then local ayar7child = xmlFindChild ( file, "nisangah", 0 ) xmlNodeSetValue (ayar7child, "3") end xmlSaveFile(file) end What should ı do ?
  11. -- LEVEL -- Top3 = {} function getPlayersSortByaData() local CreatTop = executeSQLQuery( "SELECT * FROM SHLevel ORDER BY level DESC LIMIT 30" ) local Top = {} local level = tonumber ( CreatTop[i].level ) or 0 -- attempt to convert to number or return a 0 local experience = tonumber ( getAccountData ( getAccount(CreatTop[i].hesap_adi), 'experience' ) ) or 0 -- attempt to convert to a number or return a 0 table.insert (Top, { Account = getAccountData ( getAccount ( CreatTop[i].hesap_adi ), "nickname" ) or CreatTop[i].nickname , aScore = CreatTop[i].level or 1 , aTecrube = level + ( experience / 100000 ) -- add them together } ) end table.remove(Top3) Top3 = {} if #CreatTop >0 then table.sort(Top, function(a,b) return (tonumber(a.aTecrube)or 0) > (tonumber(b.aTecrube)or 0) end) for k, data in ipairs(Top) do table.insert(Top3,{name = data.Account,score = data.aScore, sira = k}) if k == 30 then table.remove(Top) break end end end getPlayersSortByaData() addEvent("getTop2", true) addEventHandler("getTop2", root,function() triggerClientEvent(source, "SetData", source, Top3) end) [2018-07-25 09:58:28] ERROR: [gameplay]/SH-Freeroam/fr_server.lua:595: attempt to get length of global 'CreatTop' (a nil value) 595 line ======== if #CreatTop >0 then Please Help me what should I do. Please solve problem?
  12. 2018-07-25 09:58:28] ERROR: [gameplay]/SH-Freeroam/fr_server.lua:595: attempt to get length of global 'CreatTop' (a nil value) HELPPPPPPP
  13. fr_client.lua:1231:Bad argumant #1 to 'upper' (string expected, got boolean) Line 1231: if ( string.find ( string.upper ( getPlayerName(elem) ), string.upper ( isim ), 1, true ) ) then function updatePlayerBlips() if not g_PlayerData then return end local wnd = isWindowOpen(wndSpawnMap) and wndSpawnMap or wndSetPos local mapControl = getControl(wnd, 'map') for elem,player in pairs(g_PlayerData) do if not player.gui.mapBlip then player.gui.mapBlip = guiCreateStaticImage(0, 0, 9, 9, elem == g_Me and 'dosyalar/resim/localplayerblip.png' or 'dosyalar/resim/playerblip.png', false, mapControl) player.gui.mapLabelShadow = guiCreateLabel(0, 0, 100, 14, player.name:gsub("#%x%x%x%x%x%x",""), false, mapControl) local labelWidth = guiLabelGetTextExtent(player.gui.mapLabelShadow) guiSetSize(player.gui.mapLabelShadow, labelWidth, 14, false) guiSetFont(player.gui.mapLabelShadow, 'default-bold-small') guiLabelSetColor(player.gui.mapLabelShadow, 255, 255, 255) player.gui.mapLabel = guiCreateLabel(0, 0, labelWidth, 14, player.name:gsub("#%x%x%x%x%x%x",""), false, mapControl) guiSetFont(player.gui.mapLabel, 'default-bold-small') for i,name in ipairs({'mapBlip', 'mapLabelShadow'}) do addEventHandler('onClientGUIDoubleClick', player.gui[name], function() if getElementDimension(elem)==0 and getElementData(elem,"Warp")==false then server.warpMe(elem) closeWindow(wnd) else errMsg("Işınlandığın Oyuncu Işınlanma Özelliğini Kapatmış Durumda (/isinlanma)") end end, false ) end end local x, y = getElementPosition(elem) x = math.floor((x + 3000) * g_MapSide / 6000) - 4 y = math.floor((3000 - y) * g_MapSide / 6000) - 4 guiSetPosition(player.gui.mapBlip, x, y, false) guiSetPosition(player.gui.mapLabelShadow, x + 14, y - 4, false) guiSetPosition(player.gui.mapLabel, x + 13, y - 5, false) if getElementDimension(elem)~=0 then guiSetPosition(player.gui.mapBlip, -500, -500, false) guiSetPosition(player.gui.mapLabelShadow, -500, -500, false) guiSetPosition(player.gui.mapLabel, -500, -500, false) end local isim = getControlText(wndSetPos,"isim") if ( string.find ( string.upper ( getPlayerName(elem) ), string.upper ( isim ), 1, true ) ) then else if isim~="Oyuncu Ara.." then guiSetPosition(player.gui.mapBlip, -500, -500, false) guiSetPosition(player.gui.mapLabelShadow, -500, -500, false) guiSetPosition(player.gui.mapLabel, -500, -500, false) end end if getElementData(elem,"Warp")==true then guiLabelSetColor(player.gui.mapLabel, 255, 0, 0) end if getElementData(elem,"Warp")==false then guiLabelSetColor(player.gui.mapLabel, 0, 0, 0) end end end I can not solve this error If you know, show me the solution ?
  14. 116.string zaman = secoundsToDays ( tonumber ( zaman ) - getRealTime (). timestamp ) ---- Attemp dizesi
  15. local CafeTable = { deger = 1000000, hesap = getAccount("mercan5"), oyuncu = {} } local cubo = createColCuboid(-1986.4757,168.16043,26.1,26,38,8) function cubo_Enter ( hitElement, matchingDimension ) if getElementType ( hitElement ) == "vehicle" then local occupants = getVehicleOccupants(hitElement) or {} for seat, occupant in pairs(occupants) do if (occupant and getElementType(occupant) == "player") then setElementData(occupant,"Base",true) end end setElementPosition(hitElement,-1992.8588,163.74403,27.539063) else setElementData(hitElement,"Base",true) end end function cubo_Exit ( hitElement, matchingDimension ) if getElementType ( hitElement ) == "vehicle" then local occupants = getVehicleOccupants(hitElement) or {} for seat, occupant in pairs(occupants) do if (occupant and getElementType(occupant) == "player") then setElementData(occupant,"Base",false) end end else setElementData(hitElement,"Base",false) end end addEventHandler ( "onColShapeHit", cubo, cubo_Enter ) addEventHandler ( "onColShapeLeave", cubo, cubo_Exit ) addEventHandler("onResourceStart",resourceRoot,function() end) addCommandHandler("cafetesting00",function() setAccountData(CafeTable.hesap,"Sahip","Satılık") setAccountData(CafeTable.hesap,"Zaman","Bilinmiyor") setAccountData(CafeTable.hesap,"Ciro","Bilinmiyor") end) CafeCol = createColSphere(-1967.8678,196.31677,27.782543, 2) function cafeMenuHit(player) triggerClientEvent (player,"cafeHide",getRootElement(getThisResource())) end addEventHandler("onColShapeHit",CafeCol,cafeMenuHit) function cafeMenuLeave(player) triggerClientEvent (player,"cafeShow",getRootElement(getThisResource())) end addEventHandler("onColShapeLeave",CafeCol,cafeMenuLeave) function CafeMenuAl(isim,fiyat,yuzde) if getPlayerMoney(source) >= tonumber(fiyat) then if not CafeTable.oyuncu[source] then CafeTable.oyuncu[source] = {} CafeTable.oyuncu[source].yuzde = 0 CafeTable.oyuncu[source].durum = false end takePlayerMoney(source,fiyat) outputChatBox("#ffff00"..isim.." #ff7f00Satın Alındı",source,255,0,255,true) CafeTable.oyuncu[source].yuzde = CafeTable.oyuncu[source].yuzde + yuzde if CafeTable.oyuncu[source].yuzde > 99 then if CafeTable.oyuncu[source].durum == false then setPedStat(source, 24, getPedStat(source,24)+42) setElementHealth(source,200) outputChatBox("#ff7f00Tokluk Seviyen %100'e Ulaştığı İçin Canın %10 Arttırıldı",source,255,0,255,true) CafeTable.oyuncu[source].durum = true end end if yuzde == 10 then setPedAnimation ( source, "vending", "vend_drink_p",-1,true) elseif yuzde == 20 or yuzde == 30 then setPedAnimation ( source, "vending", "vend_eat_p",-1,true) end setTimer(setPedAnimation,2000,1,source,false) triggerClientEvent (source,"cafeMenuSatinAlindi",getRootElement(getThisResource()),CafeTable.oyuncu[source].yuzde) local ciro = getAccountData(CafeTable.hesap,"Ciro") if ciro=="Bilinmiyor" then setAccountData(CafeTable.hesap,"Ciro",fiyat) else setAccountData(CafeTable.hesap,"Ciro",ciro+fiyat) end else outputChatBox("Paran Yetersiz",source,255,0,0,true) end end addEvent("CafeMenuAl", true) addEventHandler("CafeMenuAl", getRootElement(getThisResource()),CafeMenuAl) addEventHandler("onPlayerQuit", root, function() if CafeTable.oyuncu[source] then CafeTable.oyuncu[source] = nil end end) cafepickup = createPickup (-1983.0883,176.14133,27.679863, 3, 1274) addEventHandler("onPickupHit", cafepickup, function(player) if getElementType ( player ) ~= "player" then return end cancelEvent() local zaman = getAccountData(CafeTable.hesap,"Zaman") local sahip = getAccountData(CafeTable.hesap,"Sahip") local ciro = getAccountData(CafeTable.hesap,"Ciro") or 0 local sahipmi = getAccountName(getPlayerAccount(player)) if zaman ~= "Bilinmiyor" then zaman = secoundsToDays(tonumber(zaman)-getRealTime().timestamp) end if sahip == sahipmi then triggerClientEvent(player, "CafePanel", getRootElement(getThisResource()),sahip,zaman,ciro,true) else triggerClientEvent(player, "CafePanel", getRootElement(getThisResource()),sahip,zaman,ciro,false) end end) function CafeSatinAl() local sahip = getAccountData(CafeTable.hesap,"Sahip") if sahip == "Satılık" then local para = getPlayerMoney(source) if para >= CafeTable.deger then takePlayerMoney(source,CafeTable.deger) setAccountData(CafeTable.hesap,"Zaman",getRealTime().timestamp+86400*7) setAccountData(CafeTable.hesap,"Sahip",getAccountName(getPlayerAccount(source))) setAccountData(CafeTable.hesap,"Ciro",0) outputChatBox("#ffff00"..getPlayerName(source).." #ff7f00Adlı Oyuncu Cafeyi 1 Haftalığına Kiraladı",root,255,0,255,true) end else outputChatBox("Cafe Daha Önceden Kiralandı",source,255,0,0,true) end end addEvent("CafeSatinAl", true) addEventHandler("CafeSatinAl", getRootElement(getThisResource()),CafeSatinAl) function CafeCiroCek(miktar) local ciro = getAccountData(CafeTable.hesap,"Ciro") local sahip = getAccountData(CafeTable.hesap,"Sahip") local accountname = getAccountName(getPlayerAccount(source)) if ciro~="Bilinmiyor" then if accountname == sahip then if miktar <= ciro then setAccountData(CafeTable.hesap,"Ciro",ciro-miktar) givePlayerMoney(source,miktar) triggerClientEvent(source, "CafePanelGuncelle", getRootElement(getThisResource()),ciro-miktar) end end end end addEvent("CafeCiroCek", true) addEventHandler("CafeCiroCek", getRootElement(getThisResource()),CafeCiroCek) setTimer(function() local zaman = getAccountData(CafeTable.hesap,"Zaman") local sahip = getAccountData(CafeTable.hesap,"Sahip") if sahip ~= "Satılık" then if zaman then if zaman < getRealTime().timestamp then setAccountData(CafeTable.hesap,"Sahip","Satılık") setAccountData(CafeTable.hesap,"Zaman","Bilinmiyor") setAccountData(CafeTable.hesap,"Ciro","Bilinmiyor") outputChatBox("#00ffffCafe Satışa Çıktı Gidip Kiralayabilirsin",root,255,255,0,true) end end end end,15*60000,0) function secoundsToDays(secound) if secound then local value,state if secound >= 86400 then value = math.floor(secound/86400) if secound - (value*86400) > (60*60) then value = value.." gün "..math.floor((secound - (value*86400))/(60*60)).." saat" else value = value.." gün" end state = 1 else value = math.floor(secound/(60*60)).." saat" state = 2 end return value else return false end end Please help
  16. -- LEVEL -- Top3 = {} function getPlayersSortByaData() local CreatTop = executeSQLQuery( "SELECT * FROM SHLevel ORDER BY level DESC LIMIT 30" ) local Top = {} local level = tonumber ( CreatTop[i].level ) or 0 -- attempt to convert to number or return a 0 local experience = tonumber ( getAccountData ( getAccount(CreatTop[i].hesap_adi), 'experience' ) ) or 0 -- attempt to convert to a number or return a 0 table.insert (Top, { Account = getAccountData ( getAccount ( CreatTop[i].hesap_adi ), "nickname" ) or CreatTop[i].nickname , aScore = CreatTop[i].level or 1 , aTecrube = level + ( experience / 100000 ) -- add them together } ) end table.remove(Top3) Top3 = {} if #CreatTop >0 then table.sort(Top, function(a,b) return (tonumber(a.aTecrube)or 0) > (tonumber(b.aTecrube)or 0) end) for k, data in ipairs(Top) do table.insert(Top3,{name = data.Account,score = data.aScore, sira = k}) if k == 30 then table.remove(Top) break end end end getPlayersSortByaData() addEvent("getTop2", true) addEventHandler("getTop2", root,function() triggerClientEvent(source, "SetData", source, Top3) end) [2018-07-25 09:58:28] ERROR: [gameplay]/SH-Freeroam/fr_server.lua:595: attempt to get length of global 'CreatTop' (a nil value) if #CreatTop >0 then He says the same thing again
  17. local KumarhaneTable = { markerPos = { {2241.845,1618.0186,1005.3,"cylinder", 1, 0, 0, 255, 255}, {2241.0264,1615.9229,1005.3,"cylinder", 1, 0, 0, 255, 255}, {2231.0354,1618.2883,1005.3,"cylinder", 1, 0, 0, 255, 255}, {2230.1758,1615.9615,1005.3,"cylinder", 1, 0, 0, 255, 255}, {2230.1707,1596.1257,1005.3,"cylinder", 1, 0, 0, 255, 255}, {2230.1282,1590.5557,1005.3,"cylinder", 1, 0, 0, 255, 255}, {2241.9907,1590.5559,1005.3,"cylinder", 1, 0, 0, 255, 255}, {2241.9663,1596.1257,1005.3,"cylinder", 1, 0, 0, 255, 255}, }, deger = 10000000, hesap = getAccount("paradox") } --[[local kumarhanecubo = createColCuboid(2179.8726,1659.6299,11.046875,17,38,5) function kumarhanecubohit(hitElement, matchingDimension) if (isElement(hitElement)) and (getElementType (hitElement) == "player") then setTimer(function() if getElementData(hitElement,"GuvenliBolge")~=true then triggerClientEvent (hitElement, "enableGodMode", hitElement) toggleControl (hitElement, "fire", false) toggleControl (hitElement, "next_weapon", false) toggleControl (hitElement, "previous_weapon", false) toggleControl (hitElement, "aim_weapon", false) toggleControl (hitElement, "vehicle_fire", false) setElementData(hitElement, "GuvenliBolge", true) end end,500,1) end end addEventHandler ("onColShapeHit", kumarhanecubo,kumarhanecubohit) function kumarhanecuboleave(leaveElement, matchingDimension) if (getElementType (leaveElement) == "player") then triggerClientEvent (leaveElement, "disableGodMode", leaveElement) toggleControl (leaveElement, "fire", true) toggleControl (leaveElement, "next_weapon", true) toggleControl (leaveElement, "previous_weapon", true) toggleControl (leaveElement, "aim_weapon", true) toggleControl (leaveElement, "vehicle_fire", true) setElementData(leaveElement, "GuvenliBolge", false) end end addEventHandler ("onColShapeLeave", kumarhanecubo,kumarhanecuboleave)--]] addEventHandler("onResourceStart",resourceRoot,function() for i, loc in ipairs(KumarhaneTable.markerPos) do local marker = createMarker(unpack(KumarhaneTable.markerPos[i])) setElementDimension(marker,62000) setElementInterior(marker,1) addEventHandler("onMarkerHit",marker,onMarkerHitForKumar) end createBlip(2192.1455,1677.2106,12.303028, 52, 1, 0, 0, 0,255,0,200 ) end) addCommandHandler("kumarhanetesting00",function() setAccountData(KumarhaneTable.hesap,"Sahip","Satılık") setAccountData(KumarhaneTable.hesap,"Zaman","Bilinmiyor") setAccountData(KumarhaneTable.hesap,"Ciro","Bilinmiyor") end) function onMarkerHitForKumar(player,md) if getElementType ( player ) == "player" and md then triggerClientEvent(player, "RuletPanel", getRootElement(getThisResource())) end end kumarhanepickup = createPickup (2194.8066,1668.5844,12.367188, 3, 1274) addEventHandler("onPickupHit", kumarhanepickup, function(player) if getElementType ( player ) ~= "player" then return end cancelEvent() local zaman = getAccountData(KumarhaneTable.hesap,"Zaman") local sahip = getAccountData(KumarhaneTable.hesap,"Sahip") local ciro = getAccountData(KumarhaneTable.hesap,"Ciro") or 0 local sahipmi = getAccountName(getPlayerAccount(player)) if zaman ~= "Bilinmiyor" then zaman = secoundsToDays(tonumber(zaman)-getRealTime().timestamp) end if ciro == "Bilinmiyor" then ciro = 0 end if sahip == sahipmi then triggerClientEvent(player, "KumarhanePanel", getRootElement(getThisResource()),sahip,zaman,ciro,true) else triggerClientEvent(player, "KumarhanePanel", getRootElement(getThisResource()),sahip,zaman,ciro,false) end end) function KumarhaneSatinAl() local sahip = getAccountData(KumarhaneTable.hesap,"Sahip") if sahip == "Satılık" then local para = getPlayerMoney(source) if para >= KumarhaneTable.deger then takePlayerMoney(source,KumarhaneTable.deger) setAccountData(KumarhaneTable.hesap,"Zaman",getRealTime().timestamp+86400*7) setAccountData(KumarhaneTable.hesap,"Sahip",getAccountName(getPlayerAccount(source))) setAccountData(KumarhaneTable.hesap,"Ciro",0) outputChatBox("#ffff00"..getPlayerName(source).." #ff7f00Adlı Oyuncu Kumarhaneyi 1 Haftalığına Kiraladı",root,255,0,255,true) end else outputChatBox("Kumarhane Daha Önceden Kiralandı",source,255,0,0,true) end end addEvent("KumarhaneSatinAl", true) addEventHandler("KumarhaneSatinAl", getRootElement(getThisResource()),KumarhaneSatinAl) function KumarhaneCiro(miktar,type) local ciro = getAccountData(KumarhaneTable.hesap,"Ciro") if ciro=="Bilinmiyor" then if type==true then setAccountData(KumarhaneTable.hesap,"Ciro",miktar) else setAccountData(KumarhaneTable.hesap,"Ciro",0-miktar) end else if type==true then setAccountData(KumarhaneTable.hesap,"Ciro",ciro+miktar) else setAccountData(KumarhaneTable.hesap,"Ciro",ciro-miktar) end end end addEvent("KumarhaneCiro", true) addEventHandler("KumarhaneCiro", getRootElement(getThisResource()),KumarhaneCiro) function KumarhaneGiveMoney(money) givePlayerMoney(source,money) end addEvent("KumarhaneGiveMoney", true) addEventHandler("KumarhaneGiveMoney", getRootElement(getThisResource()),KumarhaneGiveMoney) function KumarhaneTakeMoney(money) takePlayerMoney(source,money) end addEvent("KumarhaneTakeMoney", true) addEventHandler("KumarhaneTakeMoney", getRootElement(getThisResource()),KumarhaneTakeMoney) function KumarhaneCiroCek(miktar) local ciro = getAccountData(KumarhaneTable.hesap,"Ciro") local sahip = getAccountData(KumarhaneTable.hesap,"Sahip") local accountname = getAccountName(getPlayerAccount(source)) if ciro~="Bilinmiyor" then if accountname == sahip then if miktar <= ciro then setAccountData(KumarhaneTable.hesap,"Ciro",ciro-miktar) givePlayerMoney(source,miktar) triggerClientEvent(source, "KumarhanePanelGuncelle", getRootElement(getThisResource()),ciro-miktar) end end end end addEvent("KumarhaneCiroCek", true) addEventHandler("KumarhaneCiroCek", getRootElement(getThisResource()),KumarhaneCiroCek) setTimer(function() local zaman = getAccountData(KumarhaneTable.hesap,"Zaman") local sahip = getAccountData(KumarhaneTable.hesap,"Sahip") if sahip ~= "Satılık" then if zaman then if zaman < getRealTime().timestamp then setAccountData(KumarhaneTable.hesap,"Sahip","Satılık") setAccountData(KumarhaneTable.hesap,"Zaman","Bilinmiyor") setAccountData(KumarhaneTable.hesap,"Ciro","Bilinmiyor") outputChatBox("#00ffffKumarhane Satışa Çıktı Gidip Kiralayabilirsin (F6 > Kumarhane)",root,255,255,0,true) end end end end,15*60000,0) function secoundsToDays(secound) if secound then local value,state if secound >= 86400 then value = math.floor(secound/86400) if secound - (value*86400) > (60*60) then value = value.." gün "..math.floor((secound - (value*86400))/(60*60)).." saat" else value = value.." gün" end state = 1 else value = math.floor(secound/(60*60)).." saat" state = 2 end return value else return false end end
  18. [2018-07-25 00:24:28] ERROR: [gameplay]/-Kumarhane/server.lua:120: attempt to perform arithmetic on local 'ciro' (a boolean value) addEventHandler("onPickupHit", kumarhanepickup, function(player) if getElementType ( player ) ~= "player" then return end cancelEvent() local zaman = getAccountData(KumarhaneTable.hesap,"Zaman") local sahip = getAccountData(KumarhaneTable.hesap,"Sahip") local ciro = getAccountData(KumarhaneTable.hesap,"Ciro") or 0 local sahipmi = getAccountName(getPlayerAccount(player)) if zaman ~= "Bilinmiyor" then zaman = secoundsToDays(tonumber(zaman)-getRealTime().timestamp) end if ciro == "Bilinmiyor" then ciro = 0 end if sahip == sahipmi then triggerClientEvent(player, "KumarhanePanel", getRootElement(getThisResource()),sahip,zaman,ciro,true) else triggerClientEvent(player, "KumarhanePanel", getRootElement(getThisResource()),sahip,zaman,ciro,false) end end) What should I do please show
  19. addEventHandler("onPickupHit", cafepickup, function(player) if getElementType ( player ) ~= "player" then return end cancelEvent() local zaman = getAccountData(CafeTable.hesap,"Zaman") local sahip = getAccountData(CafeTable.hesap,"Sahip") local ciro = getAccountData(CafeTable.hesap,"Ciro") or 0 local sahipmi = getAccountName(getPlayerAccount(player)) if zaman ~= "Bilinmiyor" then zaman = secoundsToDays(tonumber(zaman)-getRealTime().timestamp) ----Attemp string end if sahip == sahipmi then triggerClientEvent(player, "CafePanel", getRootElement(getThisResource()),sahip,zaman,ciro,true) else triggerClientEvent(player, "CafePanel", getRootElement(getThisResource()),sahip,zaman,ciro,false) end end) [2018-07-25 00:10:08] ERROR: [gameplay]/--cafe/server.lua:116: attempt to perform arithmetic on a nil value Please show me what I need to do ?
  20. Thank you I resolved the error. <3
  21. My English is not very good Could you show me what to do ?
  22. Thanks bro .... I compared it now [2018-07-24 23:21:22] ERROR: [gameplay]/SH-Freeroam/fr_server.lua:592: attempt to get length of global 'CreatTop' (a nil value) ------ Player ranking ------- -- LEVEL -- Top3 = {} function getPlayersSortByaData() local Top = {} local level = tonumber ( CreatTop[i].level ) or 0 -- attempt to convert to number or return a 0 local experience = tonumber ( getAccountData ( getAccount(CreatTop[i].hesap_adi), 'experience' ) ) or 0 -- attempt to convert to a number or return a 0 table.insert (Top, { Account = getAccountData ( getAccount ( CreatTop[i].hesap_adi ), "nickname" ) or CreatTop[i].nickname , aScore = CreatTop[i].level or 1 , aTecrube = level + ( experience / 100000 ) -- add them together } ) end table.remove(Top3) Top3 = {} if #CreatTop >0 then table.sort(Top, function(a,b) return (tonumber(a.aTecrube)or 0) > (tonumber(b.aTecrube)or 0) end) for k, data in ipairs(Top) do table.insert(Top3,{name = data.Account,score = data.aScore, sira = k}) if k == 30 then table.remove(Top) break end end end getPlayersSortByaData() addEvent("getTop2", true) addEventHandler("getTop2", root,function() triggerClientEvent(source, "SetData", source, Top3) end)
  23. I do not understand what you mean. Please add to the string
  24. [2018-07-24 15:27:27] ERROR: [gameplay]/--Freeroam/fr_server.lua:586: attempt to perform arithmetic on a nil value Help me Please solve problem? -- LEVEL -- Top3 = {} function getPlayersSortByaData() local Top = {} local CreatTop = executeSQLQuery( "SELECT * FROM SHLevel ORDER BY level DESC LIMIT 30" ) for i = 1, #CreatTop do table.insert (Top, { Account = getAccountData(getAccount(CreatTop[i].hesap_adi),"nickname") or CreatTop[i].nickname , aScore = CreatTop[i].level or 1 , aTecrube = tonumber(CreatTop[i].level)+(tonumber(getAccountData ( getAccount(CreatTop[i].hesap_adi), 'experience' ))/100000) or 0 , ---583 } ) end table.remove(Top3) Top3 = {} if #CreatTop >0 then table.sort(Top, function(a,b) return (tonumber(a.aTecrube)or 0) > (tonumber(b.aTecrube)or 0) end) for k, data in ipairs(Top) do table.insert(Top3,{name = data.Account,score = data.aScore, sira = k}) if k == 30 then table.remove(Top) break end end end end getPlayersSortByaData() addEvent("getTop2", true) addEventHandler("getTop2", root,function() triggerClientEvent(source, "SetData", source, Top3) end)
×
×
  • Create New...