hey, my friend helped me so that when someone logs out, it will erase 1 number from totallogged.txt. so how can i make it that when i exit the console, it will make the number in totallogged.txt 0?
Here is the void but I don't know what to write in it to make it 0:
Here is the void but I don't know what to write in it to make it 0:
Code:
public void Disconnect()
{
try
{
if (!Robot)
{
if (Soc.Connected)
{
Soc.Shutdown(SocketShutdown.Both);
LogOff(true);
Soc.Close();
}
}
else
LogOff(true);
}
catch (Exception Exc) { Program.WriteLine(Exc); }
}