Results 1 to 9 of 9

Thread: problem hud.size

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    PHP Code:
    self.txt_hud[idestroy();
    self.txt_hud[i].name undefined
    you destroy the hud[i] here, hud[i] is now undefined and size is decreased
    however you set hud[i].name afterwards to undefined, therefore hud[i] is now more or less defined
    (since it holds the undefined membervariable name)

    PHP Code:
    self.txt_hud[idestroy(); 
    should do the trick, there is no need to set it to undefined

  2. The Following User Says Thank You to serthy For This Useful Post:

    sabixão (13th May 2014)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •