Results 1 to 7 of 7

Thread: [Help!]Creating A Type Of Generator[Help!]

  1. #1
    New Member
    Join Date
    Aug 12
    Posts
    6

    [Help!]Creating A Type Of Generator[Help!]

    Hey everyone. Well I've been working on creating a generator for CFG, which is the language of the game Call of duty. And Well. I'm completely confused on how I would go along doing what I need to have done. If anyone can Take a look at what I need it to do, and help me, that would be so great! And this is for VB.net, just so you know!.

    Okay everyone, I'm working on my own version of a R2R generator for people working with CFG. Now this program needs to be able to take a word and put it in a sorta of list. Below is an example of what I am talking about.


    Code:
    self setClientDvar("Rylie","");
    self setClientDvar("Menu1","");
    self setClientDvar("Menu2","");
    self setClientDvar("Menu3","");
    self setClientDvar("Menu4","");
    The program needs to be able to take that word and place it in a different form, like my example below.

    Code:
    Rylie|Menu1|Menu2|Menu3|Menu4|

    And Well, I'm just confused on how I would make it do that, like what would the code be. If anyone can help me, That would be great. You would be included within the credit's for you're help.

  2. #2
    New Member
    Join Date
    Aug 12
    Posts
    6

    Re: [Help!]Creating A Type Of Generator[Help!]

    Can anyone help?

  3. #3
    PowerPoster formlesstree4's Avatar
    Join Date
    Jun 08
    Location
    On the Internet
    Posts
    2,845

    Re: [Help!]Creating A Type Of Generator[Help!]

    I'm confused, what exactly is it trying to do? Can you give an example of the input your program will take, and the output it should do?

    EDIT: Also, don't bump your post so quickly. It's frowned upon here unless the bump provides useful information relating to the original problem.

  4. #4
    New Member
    Join Date
    Aug 12
    Posts
    6

    Re: [Help!]Creating A Type Of Generator[Help!]

    Quote Originally Posted by formlesstree4 View Post
    I'm confused, what exactly is it trying to do? Can you give an example of the input your program will take, and the output it should do?
    http://gyazo.com/43fbb939c45d35ed26f3cfe0edc370f6
    That's a picture of a generator that has already been created.
    I want to create a program, with a input textbox. And in that textbox, you put in you're menu, which is made up of "self setClientDvar's". Then, when you press the generate button, it takes the text you inputed, and for each self setClientDvar, it takes the dvar, so it would take the word "Rylie" in this example "self setClientDvar("Rylie","");" and put it in a different form such as Rylie| . So it takes the dvar name and puts a | after it, then takes the next dvar name and puts it after that | mark. Do you get it?

  5. #5
    PowerPoster formlesstree4's Avatar
    Join Date
    Jun 08
    Location
    On the Internet
    Posts
    2,845

    Re: [Help!]Creating A Type Of Generator[Help!]

    I see. You should research how String.SubString works, as that would be the simplest method with the other being some form of Regular Expressions.

  6. #6
    New Member
    Join Date
    Aug 12
    Posts
    6

    Re: [Help!]Creating A Type Of Generator[Help!]

    Well I've gotten it to work but there's a problem.

  7. #7
    PowerPoster formlesstree4's Avatar
    Join Date
    Jun 08
    Location
    On the Internet
    Posts
    2,845

    Re: [Help!]Creating A Type Of Generator[Help!]

    Quote Originally Posted by Rylie16 View Post
    Well I've gotten it to work but there's a problem.
    Well that's...very descriptive. Would you be so kind as to tell me what the problem is? My crystal ball is currently at the shop for it's yearly maintenance, so I can't use it to read your mind.

Posting Permissions

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