M
Mholmes3038
Guest
Is there a way to store data via SQL or MySQL using Game Maker Studio? If so does someone have samples of the function? Thanks in advance
//Command
private SqlCommand SP = new SqlCommand("StoredProcedureName");
//Product
private string Product = "Sharp Control";
//Application Connection
private SqlConnection cn = new SqlConnection("Server=www.YourURL.net;Database=YourDataBaseName;User ID =YourApplicationDataBaseUserID; Password =YourApplicationDataBasePassword");
public bool FunctionName(string _Class, string _Method, string _Exception)
{
try
{
SqlCommand cmd = new SqlCommand("Stored_Proc_Name_Here", exCon);
SqlDataAdapter da = new SqlDataAdapter(cmd);
bool Success = false;
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add(new SqlParameter("@Product", Product));
cmd.Parameters.Add(new SqlParameter("@Class", _Class));
cmd.Parameters.Add(new SqlParameter("@Method", _Method));
cmd.Parameters.Add(new SqlParameter("@Exception", _Exception));
cmd.Parameters.Add(new SqlParameter("@Success", Success));
exCon.Open();
Success = Convert.ToBoolean(cmd.ExecuteNonQuery());
exCon.Close();
return Success;
}
catch (Exception)
{
exCon.Close();
return false;
}
}
Externally? None, natively, that I'm aware. All, using the properly documented API available everywhere.What databases does Game Maker Studio support?