Search Unity

Unity newtworking login/users

Discussion in 'Multiplayer' started by Zu01, Dec 1, 2011.

  1. Zu01

    Zu01

    Joined:
    Aug 17, 2010
    Posts:
    95
    Ok, I have been on the forums before for this type of question, but i'm back with a tad of new knowlage, but I still new help from all you geniuses.

    I have come to ask how I can create a Perl Script for the following log in script

    Code (csharp):
    1. var CGI_UL= "http://www.my-server.com/cgi-bin/User9995.txt";
    2. var User = "";
    3. var Password = "";
    4.  
    5. function Update() {
    6.     if(Input.GetKeyDown("q")){
    7.         NewChar();
    8.     }
    9. }
    10.  
    11. function NewChar() {
    12.     var form = new WWWForm();
    13.     form.AddField("Username", User);
    14.     form.AddField("Password", Password);
    15.     var w = WWW(CGI_UL, form);
    16.     yield w;
    17.     if (w.error != null){
    18.         print(w.error);
    19.     }else{
    20.         print("Character Created!");
    21.     }
    Thank you advance for your help, but please... dont confuse my newbie-networked expirience :eek:
     
  2. Zu01

    Zu01

    Joined:
    Aug 17, 2010
    Posts:
    95
    This is pushy, but may I add that it would be appreciated if you stay away from the use of mysql
     
    Last edited: Dec 1, 2011
  3. Zu01

    Zu01

    Joined:
    Aug 17, 2010
    Posts:
    95
    bump :C