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:
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); }
}
I am just trying to make the the text say "0" instead of like 10 or 12 etc when I type /exit in the console. Because right now, it's set to -1 when someone logs off, but when I type /exit, they won't have the chance to log off, so that will mess up my server status, you get what I'm saying?
Decker, when are you going to learn to read code, and actually LEARN what the hell you're doing? You come to us with EVERY problem you have, and frankly a lot of us are tired of it. You're spoonfed beyond belief, you're like a 5 year old that's still on breastmilk, you don't learn to adapt. Read some tutorials, learn exactly what the hell you're doing, so you won't have to come to us all the time.
Decker, when are you going to learn to read code, and actually LEARN what the hell you're doing? You come to us with EVERY problem you have, and frankly a lot of us are tired of it. You're spoonfed beyond belief, you're like a 5 year old that's still on breastmilk, you don't learn to adapt. Read some tutorials, learn exactly what the hell you're doing, so you won't have to come to us all the time.
You don't know who is tired of it, so stop putting words in other peoples mouths.
You could have learned to be at LEAST a decent coder by now if you actually put a tiny bit of effort into it.
If thats the case, why are there so few decent coders on this forum?
There's some people who get along with the .NET framework, but thats about it for most of the 'coders' on this forum.