Jump to content

AYUDA DAYZ/PICKUPS TIENE UN ERROR


Recommended Posts

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...