Author Topic: Put a random icon on the screen.  (Read 863 times)

iOtero

  • Sr. Member
  • ****
  • Posts: 146
    • View Profile
Re: Put a random icon on the screen.
« Reply #15 on: July 31, 2018, 05:02:58 PM »
Another thing, keilmillerjr...

This line of code

Code: [Select]
local film = fe.add_image("posters/films/" + films[randInt(films.len())] + ".png", 0, 0, 0, 0);

has a small error.

This would be the correct

Code: [Select]
local film = fe.add_image("posters/films/" + films[randInt(films.len()-1)] + ".png", 0, 0, 0, 0);