Arsilex Posted July 1, 2012 Posted July 1, 2012 Hola tengo un problema con esa funcion en mi script puse que se cree un ped y despues al clickearlo salga un gui tal tal pero cuando apretó sobre el boton del style no me cambia el style el boton es asi (Es la fucion del boton cuando apreto eso se pasa a serverside con un triggerserver pero no me cambia de estilo (tampoco sale nada en el debug 3) function Krt1( thePlayer ) if ( thePlayer ) then local status = setPlayerFightingStyle ( thePlayer, 6 ) if ( not status ) then outputConsole ( "No has logrado aprender nada.", thePlayer ) end end end addEvent( "onKrt", true ) addEventHandler( "onKrt", getRootElement(), Krt1)
Castillo Posted July 1, 2012 Posted July 1, 2012 Mostra el codigo donde envias el evento: "onKrt". San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Alexs Posted July 1, 2012 Posted July 1, 2012 function Krt1( thePlayer ) if ( thePlayer ) then setPlayerFightingStyle ( thePlayer, 6 ) else outputConsole ( "No has logrado aprender nada.", thePlayer ) end end end addEvent( "onKrt", true ) addEventHandler( "onKrt", getRootElement(), Krt1) Developer @ MYVAL
Arsilex Posted July 1, 2012 Author Posted July 1, 2012 function Krt () triggerServerEvent ( "onKrt", getRootElement() ) end
Castillo Posted July 1, 2012 Posted July 1, 2012 -- client side: function Krt () triggerServerEvent ( "onKrt", localPlayer ) end -- server side: function Krt1( ) local status = setPlayerFightingStyle ( source, 6 ) if ( not status ) then outputConsole ( "No has logrado aprender nada.", source) end end addEvent( "onKrt", true ) addEventHandler( "onKrt", getRootElement(), Krt1) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Arsilex Posted July 1, 2012 Author Posted July 1, 2012 añadi eso solid y nada sigue igual no sale nada en debug y no me cambia de estilo
Castillo Posted July 1, 2012 Posted July 1, 2012 Me olvide de algo, copia el server side de nuevo. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted July 1, 2012 Posted July 1, 2012 Funciona? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted July 1, 2012 Posted July 1, 2012 Ok, de nada. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts