Jump to content

Error :/


iFoReX

Recommended Posts

Posted

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 

elMota/elFoReX De Vuelta En MTA *---------*

Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3

https://www.youtube.com/user/KillersGPs

430x73_FFFFFF_FF9900_000000_000000.png
Posted

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.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Al obtener las cuentas, las envias al cliente, o mejor envias el numero.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
addEvent("lol",true) 
addEventHandler("lol",root,function() 
local cuentas = getAccounts() 
end 
) 

Yo no veo ningun triggerClientEvent.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Crea un evento client side para recibirlas, y usa ese evento desde el server side enviando el numero de cuentas.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...