GHOSTKILLER1546 Posted February 12, 2016 Share Posted February 12, 2016 Quisiera que me ayudaran porque marca un numero nulo, esta es la linea que esta mal ERROR:5: attempt to compare number with nil function math.percentChance(percent, repeatTime) local hits = 0 for i = 1, repeatTime do local number = math.random(0, 200) / 2 if percent >= number then hits = hits + 1 end end return hits end Link to comment
starksZ Posted February 12, 2016 Share Posted February 12, 2016 Esa es una función exportada, puede que la estes usando mal. Link to comment
GHOSTKILLER1546 Posted February 12, 2016 Author Share Posted February 12, 2016 entonces no tiene nada que ver o a que te refieres con exportada Link to comment
Recommended Posts