Jump to content

GLC

Members
  • Posts

    5
  • Joined

  • Last visited

Details

  • Gang
    gangsters

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

GLC's Achievements

Vic

Vic (3/54)

0

Reputation

  1. 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("mert") } --[[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 server.lea:80: Attemp to perform arithmetic on a nill value Please help me how this error is corrected?
  2. GLC

    PLS HELP MEE

    --------------------- -- Player Ranking List -- --------------------- WindowSiralama2 = guiCreateWindow(245, 115, 450, 500, "Sıralama", false) guiSetProperty(WindowSiralama2, "CaptionColour", "FF1C90E1") guiWindowSetSizable(WindowSiralama2, false) guiWindowSetMovable(WindowSiralama2,false) guiSetVisible(WindowSiralama2, false) guiSetAlpha(WindowSiralama2, 1) centerWindow(WindowSiralama2) KapatButonSiralama2 = guiCreateButton(340, 466, 100, 24, "Kapat", false, WindowSiralama2) guiSetProperty(KapatButonSiralama2, "NormalTextColour", "FF2CFB03") LevelSiralamaButton = guiCreateButton(10, 466, 100, 24, "Level", false, WindowSiralama2) guiSetProperty(LevelSiralamaButton, "NormalTextColour", "FF2CFB03") ParaSiralamaButton = guiCreateButton(120, 466, 100, 24, "Para(Banka)", false, WindowSiralama2) guiSetProperty(ParaSiralamaButton, "NormalTextColour", "FF2CFB03") ZamanSiralamaButton = guiCreateButton(230, 466, 100, 24, "Zaman", false, WindowSiralama2) guiSetProperty(ZamanSiralamaButton, "NormalTextColour", "FF2CFB03") WindowSiralamaList2 = guiCreateGridList(5, 20, 440, 440, false, WindowSiralama2) local column = guiGridListAddColumn(WindowSiralamaList2, "Sıra", 0.20 ) local column1 = guiGridListAddColumn(WindowSiralamaList2, "Oyuncu Adı", 0.40 ) local column2 = guiGridListAddColumn(WindowSiralamaList2, "Level", 0.30 ) guiGridListSetSortingEnabled(WindowSiralamaList2, false) WindowSiralamaList3 = guiCreateGridList(5, 20, 440, 440, false, WindowSiralama2) local column = guiGridListAddColumn(WindowSiralamaList3, "Sıra", 0.20 ) local column1 = guiGridListAddColumn(WindowSiralamaList3, "Oyuncu Adı", 0.40 ) local column2 = guiGridListAddColumn(WindowSiralamaList3, "Para", 0.30 ) guiGridListSetSortingEnabled(WindowSiralamaList3, false) guiSetVisible(WindowSiralamaList3,false) WindowSiralamaList4 = guiCreateGridList(5, 20, 440, 440, false, WindowSiralama2) local column = guiGridListAddColumn(WindowSiralamaList4, "Sıra", 0.20 ) local column1 = guiGridListAddColumn(WindowSiralamaList4, "Oyuncu Adı", 0.40 ) local column2 = guiGridListAddColumn(WindowSiralamaList4, "Zaman", 0.30 ) guiGridListSetSortingEnabled(WindowSiralamaList4, false) guiSetVisible(WindowSiralamaList4,false) addEvent("SetData",true) addEventHandler("SetData",root,function ( Table ) guiGridListClear( WindowSiralamaList2 ) for i = 1,30 do local row = guiGridListAddRow ( WindowSiralamaList2 ) if ( Table [ i ].score ) then ---> fr_client.lua:2192 guiGridListSetItemText( WindowSiralamaList2, row, column, Table[i].sira , false, false ) guiGridListSetItemText( WindowSiralamaList2, row, column1, tostring(Table[i].name) , false, false ) guiGridListSetItemText( WindowSiralamaList2, row, column2, Table [ i ].score , false, false ) guiGridListSetItemColor(WindowSiralamaList2, row, column1, 255, 255, 0) guiGridListSetItemColor(WindowSiralamaList2, row, column2, 0, 180, 255) guiGridListSetItemColor(WindowSiralamaList2, row, column, 255, 0, 0) end end end) addEvent("SetData2",true) addEventHandler("SetData2",root,function ( Table ) guiGridListClear( WindowSiralamaList4 ) for i = 1,30 do local row = guiGridListAddRow ( WindowSiralamaList4 ) if ( Table [ i ].score ) then ---> fr_client.lua:2208 guiGridListSetItemText( WindowSiralamaList4, row, column, Table[i].sira , false, false ) guiGridListSetItemText( WindowSiralamaList4, row, column1, tostring(Table[i].name) , false, false ) guiGridListSetItemText( WindowSiralamaList4, row, column2, Table [ i ].score , false, false ) guiGridListSetItemColor(WindowSiralamaList4, row, column1, 255, 255, 0) guiGridListSetItemColor(WindowSiralamaList4, row, column2, 0, 180, 255) guiGridListSetItemColor(WindowSiralamaList4, row, column, 255, 0, 0) end end end) addEvent("updateTopMoney",true) addEventHandler("updateTopMoney",root,function ( Table ) guiGridListClear( WindowSiralamaList3 ) for i = 1,30 do local row = guiGridListAddRow ( WindowSiralamaList3 ) if ( Table [ i ].score ) then ---> fr_client.lua:2224 guiGridListSetItemText( WindowSiralamaList3, row, column, Table[i].sira , false, false ) guiGridListSetItemText( WindowSiralamaList3, row, column1, tostring(Table[i].name) , false, false ) guiGridListSetItemText( WindowSiralamaList3, row, column2, "$"..formatNumber(tostring(Table[i].score)).."" , false, false ) guiGridListSetItemColor(WindowSiralamaList3, row, column1, 255, 255, 0) guiGridListSetItemColor(WindowSiralamaList3, row, column2, 0, 180, 255) guiGridListSetItemColor(WindowSiralamaList3, row, column, 255, 0, 0) end end end) addEventHandler ( "onClientGUIClick", resourceRoot,function() if source == KapatButonSiralama2 then guiSetVisible(WindowSiralama2,false) elseif source == LevelSiralamaButton then if not durum1 then triggerServerEvent("getTop4", localPlayer) durum1 = true setTimer(function() durum1 = false end,60000,1) end if guiGetVisible(WindowSiralamaList3) then guiSetVisible(WindowSiralamaList3,false) end if guiGetVisible(WindowSiralamaList4) then guiSetVisible(WindowSiralamaList4,false) end guiSetVisible(WindowSiralamaList2,true) elseif source == ParaSiralamaButton then if not durum2 then triggerServerEvent("getTop3", localPlayer) durum2 = true setTimer(function() durum2 = false end,60000,1) end if guiGetVisible(WindowSiralamaList2) then guiSetVisible(WindowSiralamaList2,false) end if guiGetVisible(WindowSiralamaList4) then guiSetVisible(WindowSiralamaList4,false) end guiSetVisible(WindowSiralamaList3,true) elseif source == ZamanSiralamaButton then if not durum3 then triggerServerEvent("getTop4", localPlayer) durum3 = true setTimer(function() durum3 = false end,60000,1) end if guiGetVisible(WindowSiralamaList2) then guiSetVisible(WindowSiralamaList2,false) end if guiGetVisible(WindowSiralamaList3) then guiSetVisible(WindowSiralamaList3,false) end guiSetVisible(WindowSiralamaList4,true) end end) function formatNumber(n) if (not n) then return "Error catching data" end local left,num,right = string.match(n,'^([^%d]*%d)(%d*)(.-)$') return left..(num:reverse():gsub('(%d%d%d)','%1,'):reverse())..right end Can you edit it, please? ERROR: [gameplay]\freeroam\fr_client.lua:2192 attempt to index field '?' (a nil value) ERROR: [gameplay]\freeroam\fr_client.lua:2208: attempt to index field '?' (a nil value) ERROR: [gameplay]\freeroam\fr_client.lua:2224 attempt to index field '?' (a nil value)
  3. |'''CC23''' |Error Connection timed out |MTA10\core\CConnectManager.cpp:258
  4. Beyler 2 hafta önce connection timed out hatası aldım . 1 hafta sonra serwer browser daki serverler oldu yok internet e basıyorum listede server yök aq .Connecting serverden girip IP yazıorum connectin timed out hatası veriyor.Güvenlik duvarını kaldırıyorum,oyunu silip silip yüklüyorum düzelmiyor Yardım edin Allah için.Ayrıca Samp indirdim ordada internete bastıgımda hiçbir server gelmiyor listeye. yardım edin kafayı yiyecem aq
×
×
  • Create New...