depato123 Posted May 7, 2014 Share 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? Link to comment
Castillo Posted May 7, 2014 Share Posted May 7, 2014 trigger*Event lo unico que hace es devolver true o false, no podes hacer que devuelva un resultado especifico. Link to comment
depato123 Posted May 7, 2014 Author Share Posted May 7, 2014 Si. ya me lo habian dicho. Ya solucioné el problema. Gracias Link to comment
Recommended Posts