- Home /
Help needed with Client/Server Comunication
This is the issue that i have at the moment, and i'm getting very frustrated about this.
I have this code in my login server application:
public void RequestAccountRegister(string id, string password, string email, string clientIp, int accessLevel)
{
string INSERT_ACCOUNT_VALUES = @"INSERT INTO accounts (id, password, email, clientIp, accessLevel) VALUES ('" + id + "','" + password + "','" + email + "','" + clientIp + "','" + accessLevel +"')";
MySqlConnection Connection = new MySqlConnection(LoginConfigLoader.getConString());
Connection.Open();
MySqlCommand Command = new MySqlCommand(INSERT_ACCOUNT_VALUES, Connection);
Command.Prepare();
Command.ExecuteNonQuery();
Debug.LogWarning("Recieved New Account Registration.");
}
My problem is that how can i make that void Request from my Client?
So it would be like:
THIS IS CLIENT : RequestAccountRegister(variables)
Thank's in advance, any help will be greatly appreciated.
Comment
Your answer
