iFoReX Posted February 8, 2013 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
Castillo Posted February 8, 2013 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.
iFoReX Posted February 8, 2013 Author Posted February 8, 2013 a que te refieres a triggerClientEvent ? donde hago eso
Castillo Posted February 8, 2013 Posted February 8, 2013 Al obtener las cuentas, las envias al cliente, o mejor envias el numero.
Castillo Posted February 8, 2013 Posted February 8, 2013 addEvent("lol",true) addEventHandler("lol",root,function() local cuentas = getAccounts() end ) Yo no veo ningun triggerClientEvent.
iFoReX Posted February 8, 2013 Author Posted February 8, 2013 y que hago con ese triggerClientEvent ?? xDD se me borro lo poco que sabia de la mente D:
Castillo Posted February 8, 2013 Posted February 8, 2013 Crea un evento client side para recibirlas, y usa ese evento desde el server side enviando el numero de cuentas.
Recommended Posts