Programming For Idiots (Tutorial) - In C#

07/12/2008 18:17 IHateHomos#46
I got WinXP Pro Essential, it came with all the video codecs to view this ;)
07/12/2008 19:29 Exqui#47
I have something amazing. It is called Winamp.

>.>
07/12/2008 19:40 Kiyono#48
Quote:
Originally Posted by Exqui View Post
I have something amazing. It is called Winamp.

>.>
Seriously never heard of that before, I gonne downlaod it and try it
07/12/2008 20:13 InfamousNoone#49
Quote:
Originally Posted by IHateHomos View Post
He said he's running his private server off of ini files XD!!!!!!!

Now. What is an ini file?

An initialization file, which is used by an application to store configuration data that is read as the program is starting.

And he plans on basing a whole server off of ini files? XD
As stated before seriously, what hadeset did with INI's sucks. Nobody knows how to optimize INI's far enough to make it work or at least compensate for what MySQL provides other than myself (or at least, I don't know anyone else who can).
07/13/2008 08:50 scottdavey#50
Quote:
Originally Posted by InfamousNoone View Post
If anyone has any questions at programming feel free to ask; if your going to be stupid and ask something like "how do I make guilds?" I'm not going to bother responding. Please ask something SPECIFIC.

For instance; "How would I implement an IP Ban feature?", "How does ______ work?", etc.

Keep in mind, you question could both be about conquer programming, or general programming, anything thats not currently public won't be released from me (i.e. how do I decrypt password hex dumps? Won't be answered because the knowledge isn't public).
Hey on my server, I'm trying to load a timer interval from a .ini file but i keep getting the same error..

i never usually have problems like this but this is taking the piss, I've only been doing c# a few months,

Code:
Cannot implicitly convert type 'string' to 'double'
errored line:
Code:
            restart.Interval = RestartTime;
This is the stuff
Code:
                Ini server_ = new Ini(System.Windows.Forms.Application.StartupPath + @"server.ini");
                RestartTime = server_.ReadValue(Convert.ToString("Server"), "restart");
07/13/2008 11:56 tanelipe#51
Change this :

Code:
Ini server_ = new Ini(System.Windows.Forms.Application.StartupPath + @"server.ini");
RestartTime = server_.ReadValue(Convert.ToString("Server"), "restart");
To

Code:
Ini server_ = new Ini(System.Windows.Forms.Application.StartupPath + @"server.ini");
RestartTime = Convert.ToDouble(server_.ReadValue(Convert.ToString("Server"), "restart"));
But isn't the standard timers interval integer, not double?

Also you could try something like...
Code:
 public double ReadDouble(string Section, string Key, double Default)
        {
            double res;
            if (double.TryParse(ReadValue(Section, Key), out res))
                return res;
            return Default;               
        }
07/13/2008 14:39 Kiyono#52
So is there a way to fix the problem with voice being to fast?
07/13/2008 17:57 InfamousNoone#53
Rewind and listen again :P


@Tane:
double.Parse is faster than Convert.ToDouble
07/13/2008 19:28 scottdavey#54
Quote:
Originally Posted by tanelipe View Post
Change this :

Code:
Ini server_ = new Ini(System.Windows.Forms.Application.StartupPath + @"server.ini");
RestartTime = server_.ReadValue(Convert.ToString("Server"), "restart");
To

Code:
Ini server_ = new Ini(System.Windows.Forms.Application.StartupPath + @"server.ini");
RestartTime = Convert.ToDouble(server_.ReadValue(Convert.ToString("Server"), "restart"));
But isn't the standard timers interval integer, not double?

Also you could try something like...
Code:
 public double ReadDouble(string Section, string Key, double Default)
        {
            double res;
            if (double.TryParse(ReadValue(Section, Key), out res))
                return res;
            return Default;               
        }
I get that error twice now, thanks for trying anyway
07/13/2008 22:46 hio77#55
these videos are very helpfull :) keep it up lol
07/15/2008 00:04 InfamousNoone#56
Added a guide on socket programming for client and server (over tcp), hoorah.
07/15/2008 03:22 hio77#57
:D they are getting better and better :) keep it up!!
07/15/2008 03:29 Ninja1337#58
Well i got question i wann know if we start with this tut can we for example be able to crack an program ex: isrobot or tbot ( Bots For Silkroad Online)

Edit: i got problem with Videos i can just hear voice but i cant see videoit is like song file idk why
im playing them with windows media player or divx player
07/15/2008 03:54 InfamousNoone#59
Well in my latest lesson I provide a sample of my "System.NativeInterop" DLL which'll be continued out meaning users won't need to have knowledge of the CRT or native win32 api's. I'll get into messing with programs when I start doing lessons I declare "advanced".
07/15/2008 04:04 scottdavey#60
You said at the start ask smart questions, And my question is exactly what you said.
How to create an IP ban function?