Hello. This year I finish high school and I got the title of technician for computer. I studied programming for 4 years (Pascal, C, C++ and C#) and I want to make my first Insim aplication that should make server statistics. (For each player: Top speed at diferent track, total laps, laps on each track... One file for each player). I read a bit about it on the forum and I was able to connect to server but still unable to manage with statistics. Help me to make first insim moves. Thank you very much
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using InSimDotNet;
using InSimDotNet.Packets;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
// Create new InSim object
InSim insim = new InSim();
// Initailize InSim
insim.Initialize(new InSimSettings {
Host = "127.0.0.1", // Host where LFS is runing
Port = 29999, // Port to connect to LFS through
Admin = "xxx", // Optional game admin password
});
// Send message to LFS
insim.Send("/msg Hello, InSim!");
}
}
}