iFoReX Posted February 8, 2013 Share Posted February 8, 2013 Me da error esto en la variable "cuentas" como lo soluciono ? sv addEvent("lol",true) addEventHandler("lol",root,function() local cuentas = getAccounts() end ) cl function complementos(cuentas) local sWidth,sHeight = guiGetScreenSize() local players = getElementsByType("player") showChat(false) triggerServerEvent("lol",getRootElement(),cuentas) dxDrawText("#00ffffBienvenidos a", sWidth*0.150, sHeight*0.920, sWidth*0.715, sHeight*0.997, tocolor(255, 255, 255, 255), .6, "bankgothic", "left", "top", false, false, true, true, true) dxDrawText("#ff6600TwD|Dead City Infection -Zombies- Resident Evil Latino [Zombies] 24/7", sWidth*0.150, sHeight*0.940, sWidth*0.715, sHeight*0.997, tocolor(255, 255, 255, 255), .6, "bankgothic", "left", "top", false, false, true, true, true) dxDrawText("#00ffffPlayers Online : #ff6600"..tostring(#players).."#00ffff/#ff6600150", sWidth*0.600, sHeight*0.920, sWidth*0.715, sHeight*0.997, tocolor(255, 255, 255, 255), .6, "bankgothic", "left", "top", false, false, true, true, true) dxDrawText("#00ffffUsuarios : #ff6600"..tostring(#cuentas).."#00ffff/#ff6600150", sWidth*0.100, sHeight*0.120, sWidth*0.715, sHeight*0.997, tocolor(255, 255, 255, 255), .6, "bankgothic", "left", "top", false, false, true, true, true) end Link to comment
Castillo Posted February 8, 2013 Share Posted February 8, 2013 Ese es todo el script? ademas, al hacer un triggerServerEvent, luego tenes que enviar las cuentas con triggerClientEvent desde el server side al client side. Link to comment
iFoReX Posted February 8, 2013 Author Share Posted February 8, 2013 a que te refieres a triggerClientEvent ? donde hago eso Link to comment
Castillo Posted February 8, 2013 Share Posted February 8, 2013 Al obtener las cuentas, las envias al cliente, o mejor envias el numero. Link to comment
iFoReX Posted February 8, 2013 Author Share Posted February 8, 2013 hay las envie al cliente, no ? Link to comment
Castillo Posted February 8, 2013 Share Posted February 8, 2013 addEvent("lol",true) addEventHandler("lol",root,function() local cuentas = getAccounts() end ) Yo no veo ningun triggerClientEvent. Link to comment
iFoReX Posted February 8, 2013 Author Share Posted February 8, 2013 y que hago con ese triggerClientEvent ?? xDD se me borro lo poco que sabia de la mente D: Link to comment
Castillo Posted February 8, 2013 Share Posted February 8, 2013 Crea un evento client side para recibirlas, y usa ese evento desde el server side enviando el numero de cuentas. Link to comment
Recommended Posts