Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/19/19 in all areas

  1. 1 point
  2. Version 1.0.0

    204 downloads

    Hello everybody. I was recently introduced to ArchiveFix, which is being used to fix Archives, so we can use them on RageMP. It was a hassle, dragging every single .rpf onto the Application for each Mod, so I created a little Helper Tool for this use case. It's Open Source and Contributions are welcome. I'm currently thinking about looking for a way to automate Archive Unpacking/Repacking aswell. Source Code: GitHub Repository - AutoAffix README.md: GitHub - AutoAffix README.md Have fun with the Tool and if you encounter any Bugs, feel free to report them. Please read the README.md so the Tool can work as intended!
    1 point
  3. using MySql.Data.MySqlClient; namespace Database { class DatabaseTest { public string connectionString = "SERVER=127.0.0.1; DATABASE=db; UID=root; PASSWORD=pw;"; /// <summary> /// Get the Name from Database /// </summary> /// <param name="id">primary key</param> /// <returns>the name</returns> public static string GetName(int id) { using (MySqlConnection connection = new MySqlConnection(connectionString)) { connection.Open(); MySqlCommand command = connection.CreateCommand(); command.CommandText = "SELECT * FROM `mytable` WHERE id = @id LIMIT 1"; command.Parameters.AddWithValue("@id", id); //command.Parameters.AddWithValue("@somemore", somemore); using (MySqlDataReader reader = command.ExecuteReader()) { reader.Read(); return reader.GetString("name"); } } } } } it is not testet but should work like this
    1 point
  4. if you can read others code check the wierd players gamemode in database.cs is a good example ...... i will do a simple version for you
    1 point
  5. 0 points
×
×
  • Create New...