molinaa1 Posted June 9, 2014 Share Posted June 9, 2014 Hola! Necesito ayuda con este error! ERROR: Gangs\server.lua:76 attempt to index global settings (a nil value) Aca el pedaso del script! function setUpDataAccount() DataAcc = getAccount( Settings["DataAccName"]) if not DataAcc then DataAcc = addAccount(Settings["DataAccName"],math.random(5000,6000)) end addEventHandler("onPlayerLogin",root,function(pre,now) local name = getAccountName(now) if name == Settings["DataAccName"] then cancelEvent() end end ) end Ayudaporfa! Link to comment
Bc# Posted June 9, 2014 Share Posted June 9, 2014 Ahora posteas una parte del código filtrado.. "NO DEJARÁ DE SEL FILTRADO POR SOLO PUBLICAR UN TROZO DE EL" Link to comment
BorderLine Posted June 9, 2014 Share Posted June 9, 2014 por logica supongo q la linea 76 es DataAcc = addAccount(Settings["DataAccName"],math.random(5000,6000)) pero si no muestras de donde obtienes addAccount entoncs no podriamos ayudar DataAcc = addAccount(Settings["DataAccName"],math.random(5000,6000)) Link to comment
molinaa1 Posted June 9, 2014 Author Share Posted June 9, 2014 Street Cat, Este no es "filtrado" Este me lo hicieron, porque le dije que no era de el, BorderLine, ahi pruebo eso, Quieres que te pase el script? Link to comment
molinaa1 Posted June 9, 2014 Author Share Posted June 9, 2014 Oye mira, Este es la parte del script function setUpDataAccount() DataAcc = addAccount( Settings["DataAccName"],math.random(5000,6000)) if not DataAccName then DataAccName = addAccount(Settings["DataAccName"],math.random(5000,6000)) end addEventHandler("onPlayerLogin",root,function(pre,now) local name = getAccountName(now) if name == Settings["DataAccName"] then cancelEvent() end end ) end Esto esel settings Settings = { ["OpenKey"] = "F5", -- Bind para abrir el panel - ["DataAccName"] = "DataAccName", -- ["GroupChat"] = true, -- ["GroupChatKey"] = "i", -- Chat grupal - ["MoneyToCreateGroup"] = true, -- ["MoneyToCreateGroupAmount"] = 50000, -- Dinero - ["MoneyToCreateGroupTake"] = true, -- } Link to comment
Bc# Posted June 9, 2014 Share Posted June 9, 2014 El se refiere a que muestres la funcion addAccount que esta en tu codigo. Link to comment
Recommended Posts