Hi. I am trying to send two values (username/password) in the same message over mooclick to a server that saves the info. How can I get the server (created in mmf)to separate the username and password so I can save it server-side?
Thanks![]()

Hi. I am trying to send two values (username/password) in the same message over mooclick to a server that saves the info. How can I get the server (created in mmf)to separate the username and password so I can save it server-side?
Thanks![]()





Hi MrXkill,
well, i' m not realy into making online games. But i assume you could "seperate" the two Strings by a "Delimiter" like , or ;
for example: "myusername;mypassword"
On the Server-Side you then have to "split" that String by using the "delimiter"-Character that you have previously specified.
But as far as coding goes, you need somebody who already did an online-game with Login.
Greets,
jahkri

Thanks Jahkri. How do you get the string parser to separate the string? I'm gonna make a quick trip the the mooclick tutorial. I recall it doing something like that
-EDIT-
I looked back and it still doesn't work. Any ideas? I think Jahkri has the idea, but I don't know how to do it?





Hi again MrXkill,
have you taken a look at the "Tutorials-Section" in the Sidebar just on the Right of the Forum? In the "Advanced Tutorials"-Section there' s a Tutorial called: "Online Registration and Login" written by RickyRombo. Perhaps you could find a proper solution in this Tutorial.
Anyway, here' s the Direct-Link to the Tutorial:
http://www.clickteam.com/website/usa/img/uploads/tutorials/download/Registration_tutorial.zip
Greets,
jahkri
You can use the String Tokenizer extension to split up your string upon receiving it. Supposing you sent a string in the format "Username|Password", you would first want to use the split string action, giving that string as the first parameter, and "|" as the delimiter. You can then use the expression Element$( "String tokenizer", 0) to get the username and Element$( "String tokenizer", 1) for the password.
Hope that helps.![]()





Hey Jaffob,
thanks a lot for jumping in. I knew i read somewhere about using "Delimiters" to seperate Strings, but i never had to use them and never knew how exactly that they would work...
So your Information was also realy intersting and helpful for me to. Could be realy useful in the (near) Future. Thanks again and greets
jahkri
Hey Jahkri,
Glad I could help.String tokenizing is definitely very useful when making applications (my ExtensionView program is based entirely off this, for example). It's often not really necessary in games, but in can occasionally be pretty handy when dealing with files and data transmission as well.
![]()





Hey Jaffob,
thanks again for your kind words. I use MMF also mainly for App-Development. But sadly i had a long pause in Using MMF. Latest Version i used before V2 was V1.2 and thats realy some Time ago. I started with Klik n' Play in 1995, then came "The Games Factory" and then Multimedia Fusion. I think i was also very active on the Forum at the MMF 1.0 - MMF 1.2 Times. I think i even remember my old Forum-Name. I believe it was "Dolphinboy"
Perhaps some of the "older" MMF-Guys may remember me... had some interesting discusions in these ol' Times. But i think also many Users have switched their User-Names and sadly i realy don' t remember anybody anymore from these Times.
Anyway... sorry to have become nostalgic... just overcame me to share some of my rememberings from the ol' TImes.
Greets (from the Past)
jahkri

Hey thanks Jaffob and Jahkri!
BTW, where can you find the "Split String" Action. When I click it to add an action under a condition all I can do is add delimeters and set source strings.