molinaa1 Posted June 9, 2014 Share Posted June 9, 2014 Necesito arreglar el error ERROR: Gangs\server.lua:76: attempt to index global 'settings' /a nil value) Aqui la linea 76 75 function setUpDataAccount() 76 DataAcc = addAccount( Settings["DataAccName"],math.random(5000,6000)) 77 if not DataAccName then 78 DataAccName = addAccount(Settings["DataAccName"],math.random(5000,6000)) 79 end 80 addEventHandler("onPlayerLogin",root,function(pre,now) 81 local name = getAccountName(now) 82 if name == Settings["DataAccName"] then 83 cancelEvent() 84 end 85 end ) 86 end Aqui el settings, Settings = { ["OpenKey"] = "F5", -- Bind para abrir el panel - ["DataAccName"] = "DataAccName", -- ["GroupChat"] = true, -- ["GroupChatKey"] = "i", -- Chat grupal - ["MoneyToCreateGroup"] = true, -- ["MoneyToCreateGroupAmount"] = 50000, -- Dinero - ["MoneyToCreateGroupTake"] = true, -- } Aclaro que es un script, para que te cobre cuando tu creas una gang! Desde ya graciass Link to comment
UserToDelete Posted June 28, 2014 Share Posted June 28, 2014 ["DataAccName"] = "DataAccName", no puedes poner una variable del mismo nombre que la misma Link to comment
Recommended Posts