Narutimmy Posted January 12, 2016 Share Posted January 12, 2016 como puedo arreglar eso? setRadioChannel(0) function makeRadioStayOff() setRadioChannel(0) ---773 Linea cancelEvent() end addEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) Link to comment
Castillo Posted January 12, 2016 Share Posted January 12, 2016 El evento que estas usando se ejecuta por la funcion "setRadioChannel", por lo que es un loop infinito. Quita setRadioChannel. Link to comment
Tomas Posted January 12, 2016 Share Posted January 12, 2016 setRadioChannel(0) function makeRadioStayOff() if ( getRadioChannel() == 0 ) then return end setRadioChannel(0) ---773 Linea cancelEvent() end addEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) Aunque te recomiendo simplemente desactivar los controles de la radio Link to comment
Narutimmy Posted January 12, 2016 Author Share Posted January 12, 2016 setRadioChannel(0) function makeRadioStayOff() if ( getRadioChannel() == 0 ) then return end setRadioChannel(0) ---773 Linea cancelEvent() end addEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) Aunque te recomiendo simplemente desactivar los controles de la radio Gracias, provare Link to comment
Recommended Posts