depato123 Posted May 7, 2014 Posted May 7, 2014 Hola tengo problemas con este script Export: exports.players:getPlayerEdad Esta funcion es server side Server: function lol ( player ) exports.players:getPlayerEdad (player) end addEvent( "onEdad", true ) addEventHandler( "onEdad", root, lol ) Client: function lolxD () triggerServerEvent ( "onEdad", player ) end function verifyCharacterEdad( player ) if not edad then return "No edad given." elseif edad > 17 then return "edad must be at least 5 chars." elseif edad < 60 then return "Name must be at most 22 chars." end end Lo que no se es como triggear el export y luego una vez triggeado hacerlo variable. ¿Me podrian hechar una mano?
Castillo Posted May 7, 2014 Posted May 7, 2014 trigger*Event lo unico que hace es devolver true o false, no podes hacer que devuelva un resultado especifico. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
depato123 Posted May 7, 2014 Author Posted May 7, 2014 Si. ya me lo habian dicho. Ya solucioné el problema. Gracias
Recommended Posts