Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[Resolved] self.contents.font.size = $defaultfontsize

Status
Not open for further replies.
      self.contents.font.size = $defaultfontsize

That line of code has caused problems on NUMEROUS scripts. Mostly the Tiberian scripts. It comes up with the error "can not convert nil to int"

How can I fix this? Can I nigrig this to work? I tried      self.contents.font.size = 5, and it worked for a while then busted, and I don't know why.

Any and all help are appreciated. Thank you for your time
 

khmp

Sponsor

Code:
$defaultfontsize = 22

Put that line of code at the top of the script that is giving you trouble. Please don't use the word nigrig.

Good luck with it Deathbreak! :thumb:
 
Status
Not open for further replies.

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top