Search the Community

Showing results for tags 'npgsql'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RAGE Multiplayer
    • Announcements
    • Discussion
    • Suggestions
    • RDR2 Multiplayer
  • Scripting
    • Scripting
    • Resources
  • Community
    • Support
    • Servers
    • Media Gallery
  • Non-English
    • Русский - Russian
    • Français - French
    • Deutsch - German
    • Espanol - Spanish
    • Română - Romanian
    • Portuguesa - Portuguese
    • Polski - Polish

Categories

  • Scripts
  • Gamemodes
  • Libraries
  • Plugins
  • Maps
  • Tools

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Facebook


Youtube


Skype


Web


VK

Found 1 result

  1. Hello, I have a problem --> Link <-- using Npgsql; using GTANetworkAPI; using System.Collections.Generic; using System.Globalization; using System.Text; using System.Threading.Tasks; using System; namespace Npgsql { public class Main : Script { [Command("test")] public void Hello(Client client) { string conn_param = "Server=127.0.0.1;Port=5432;User Id=postgres;Password=**********;Database=postgresqlDB;"; NpgsqlConnection conn = new NpgsqlConnection(conn_param); NpgsqlCommand com = new NpgsqlCommand("SELECT * FROM players;", conn); conn.Open(); NpgsqlDataReader reader; reader = com.ExecuteReader(); while (reader.Read()) { try { string result = reader.GetString(1); client.SendChatMessage(result); } catch { } } conn.Close(); } } } I must say right away that he cannot find the library, I understand, the fact is that it is present. If you add the file System.Data.Common in the folder from which the server is started, another error will appear. --> Link <-- And add the file System.Threading.tasks.extensions in the folder, Nothing happens.