Narutimmy Posted January 12, 2016 Posted January 12, 2016 como puedo arreglar eso? setRadioChannel(0) function makeRadioStayOff() setRadioChannel(0) ---773 Linea cancelEvent() end addEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff)
Castillo Posted January 12, 2016 Posted January 12, 2016 El evento que estas usando se ejecuta por la funcion "setRadioChannel", por lo que es un loop infinito. Quita setRadioChannel.
Tomas Posted January 12, 2016 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
Narutimmy Posted January 12, 2016 Author 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
Recommended Posts