Jump to content

[AYUDA] Login - triggerClientEvent


Recommended Posts

Posted

Holas! tengo un problema con mi panel Login.

Aqui esta el server-side ( donde dice que esta el problema )

addEventHandler("onPlayerJoin", root, 
function() 
setCameraMatrix(source, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) 
fadeCamera (source, true) 
--- 
setTimer( functionPanel, 2000, 1 ) 
--- 
end 
) 
  
function functionPanel() 
triggerClientEvent(source, "GUILogin", source) 
end 

el debugscript 3 dice:

WARNING: login/server.lua:12: Bad Argument @ 'triggerClientEvent' [Expexted string at argument 1, got nill] 

que pasa con el TriggerClientEvent? :|

Instagram | ¡Sígueme en YouTube! | Facebook
Todo se puede con algo de esfuerzo

Posted

El tema es que 'source' en la funcion 'functionPanel' no esta definido en ninguna parte.

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
function functionPanel() 

Ahi tenes que poner 'source' entre los parentesis.

Y luego, tenes que pasar el valor en el setTimer, just despues de los argumentos del temporizador.

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

De nada.

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...