GHOSTKILLER1546 Posted February 12, 2016 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
starksZ Posted February 12, 2016 Posted February 12, 2016 Esa es una función exportada, puede que la estes usando mal.
GHOSTKILLER1546 Posted February 12, 2016 Author Posted February 12, 2016 entonces no tiene nada que ver o a que te refieres con exportada
Recommended Posts