Page 2 of 2 FirstFirst 1 2
Results 11 to 17 of 17

Thread: Gs2 for the Noobs #2

  1. #11
    Street Boss John's Avatar
    Join Date
    Jun 2013
    Location
    Lebanon
    Posts
    825
    Quote Originally Posted by sandsalamand1 View Post
    Hi, I code c++ and obj-c, and I was wondering: in gs2, are the variable types assigned automatically somehow? Although this seems intuitive, it seems like it might cause some problems, I was just wondering..
    Yes, you do not have to declare the variable.
    This does create some problems, but everything is assigned to the type 'object', and the compiler will try to identify it.
    -Johnaudi

  2. #12
    Veteran Striker's Avatar
    Join Date
    Jul 2013
    Location
    Britian
    Posts
    283
    John and callimuc are still teaching me :]
    Striker*
    -Have any question, concerns or problems?
    Message me on forums, click on the link if you need help: http://era-go.com/forum/member.php?410-Striker
    Need help on iEra P.M my nick name is Striker*
    -Need further help? My email is:[email protected]
    ENjOY PLAYING IERA!!!!!
    -Gani Artist

  3. #13
    Shooter Banshee's Avatar
    Join Date
    Aug 2013
    Location
    Seattle
    Posts
    1,298
    function onCreated ( ) { banshee= {I, Am, So, Cool}
    function banshee( );
    echo(banshee);
    }
    So when you start a script for like making an event do you have to list all the variables at the start of the script cause wouldnt there be a lot?

  4. #14
    Quote Originally Posted by Banshee View Post
    function onCreated ( ) { banshee= {I, Am, So, Cool}
    function banshee( );
    echo(banshee);
    }
    So when you start a script for like making an event do you have to list all the variables at the start of the script cause wouldnt there be a lot?
    PHP Code:
    function onCreated() {
      
    temp.banshee = {
        
    "I""Am""So""Cool"
      
    };

      
    banshee();
    }

    function 
    banshee() {
      echo(
    "Banshee");

    <3 Variables are defined as you go. That question's not very specific though, so I'm not quite sure what you mean.

  5. #15
    Attachment 2874

    im trying to learn this at school its so hard x.x

  6. #16
    Street Boss
    Join Date
    Jun 2013
    Location
    United States
    Posts
    529
    Quote Originally Posted by Simplest View Post
    Attachment 2874

    im trying to learn this at school its so hard x.x
    Ah, what language?

  7. #17
    Confusing at first glance.
    Thanks for providing this @John, I'll try to memorize this.
    .~* /V,'/< /<,' *~.



Posting Permissions

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