Results 1 to 7 of 7

Thread: Weapons won't work onCreated

  1. #1
    Soldier
    Join Date
    Jun 2013
    Location
    France
    Posts
    55

    Weapons won't work onCreated

    Well, I have created a Class which contains a function used to create a GUI for a Menu.

    So with my function I create the Basics Menu GUI and also I created a Button to show the Menu.

    Everything work if I update the weapon, but if I reconnect then the Button isn't show, and I have to update the weapon to make it show!

    I have no idea why it does that because I used this function by an event onMouseDown (on a player) and it works perfeclty.

    It seems that in a function onCreated its not called :O

    Any idea what could be the prob?

    - - - Updated - - -

    Hey, I finally understood my problems. I read here: http://forums.fairyland-europe.com/forums/showthread.php?t=134262876, that you always have to join a class in serverside even if she is in clientside now it works fine.

  2. #2
    I'm not sure exactly---I may need to see a code snippet of the weapon. You can try adding:
    function onInitiliazed() {
    // destroy previous instance of button
    // call onCreated()?
    }

  3. #3
    Soldier
    Join Date
    Jun 2013
    Location
    France
    Posts
    55
    Quote Originally Posted by Joe View Post
    - - - Updated - - -

    Hey, I finally understood my problems. I read here: http://forums.fairyland-europe.com/f...hp?t=134262876, that you always have to join a class in serverside even if she is in clientside now it works fine.
    So I found my prob:P It was a class problem.

  4. #4
    Big Cheese Kitty A Phoenix's Avatar
    Join Date
    Jun 2013
    Location
    Kitty Land
    Posts
    1,446
    Quote Originally Posted by Joe View Post
    So I found my prob:P It was a class problem.
    Would you like for me to close the thread now Joe?
    Have any questions or concerns?
    Email me at [email protected]
    PM me at in-game nickname Kitty A. Phoenix
    Private message me here via forum: http://era-go.com/forum/member.php?178-Kitty-A-Phoenix
    Want to apply to become a part of the Era staff team? Opportunities will be regularly updated here: http://era-go.com/forum/forumdisplay...-Opportunities


    Enjoy Playing iEra!

  5. #5
    Player Relations Angel2874's Avatar
    Join Date
    Jul 2013
    Location
    On Earth
    Posts
    627
    Welcome!

    Need help? Just Message me I will gladly help!


  6. #6
    Soldier
    Join Date
    Jun 2013
    Location
    France
    Posts
    55
    Quote Originally Posted by Kitty A Phoenix View Post
    Would you like for me to close the thread now Joe?
    I found my problem, so do what you want :P

  7. #7
    Big Cheese Kitty A Phoenix's Avatar
    Join Date
    Jun 2013
    Location
    Kitty Land
    Posts
    1,446
    Thread closed per request of OP.
    Have any questions or concerns?
    Email me at [email protected]
    PM me at in-game nickname Kitty A. Phoenix
    Private message me here via forum: http://era-go.com/forum/member.php?178-Kitty-A-Phoenix
    Want to apply to become a part of the Era staff team? Opportunities will be regularly updated here: http://era-go.com/forum/forumdisplay...-Opportunities


    Enjoy Playing iEra!

Posting Permissions

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