Well here's a little need to know about definitions.
Bool: If something is defined as a bool, then it is a true or false statement.
Like public bool GWOn = false;
If its true then where ever it is coded GW will be on.
Byte:Anything defined as a byte is an unsigned 8-bit integer that can go from 0-255, like public byte Level = 0;
A character's level is defined as a byte so it can only go up to 255.
Int:Anything defined as an int is a signed 32-bit integer that can range anywhere from -2,147,483,648 to 2,147,483,647.
Long:Anything defined as a Long is a Signed 64-bit integer that can range anywhere from –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807.
Sbyte: Anything defined as an sbyte is a Signed 8-bit integer that can range anywhere from -128 to 127.
Short: Anything defined as a short is a Signed 16-bit integer that can range anywhere from
-32,768 to 32,767.
Uint: Anything defined as a uint is a Unsigned 32-bit integer that can range anywhere from 0 to 4,294,967,295.
Ulong: Anything defined as a ulong is a Unsigned 64-bit integer that can range anywhere from 0 to 18,446,744,073,709,551,615.
A public static void is, (and I'm probably not explaining it right but this is how I view it.) an action.
Like say you have this in world.cs:
public static void Hello ()
{
Console.Writeline("Hello World");
}
Everytime you call the method,
World.Hello();
It is going to write Hello World on the console.
can u guys give me some examples for how? why? when?:
Explain me the following:
what are the diffrences of:
Public bool
Public byte
public ushort
public uint
public void
etc
Teach/explain me all the diffrences please .
So when do i use: Public bool, and when Public byte etc.?
(Just trying 2 undestand C# more..)
Dont flame.. Just give me examples of what defenition comes when?
Arco just did a great job but try checking the link in my siggy. I tried to explain some basic programing concepts and related them to conquer. Search through some of the pages cause they are by no means in order.
@ the ranges of the diff types, someone posted a chart in my thread or you can google them
@ rates?... I assume you mean drop rates or something? What I'd do if your source doesn't already have a percent success function coded is write a function to do it... basically you put in a percentage (double value so you can use decimals) and it will return true/false value based on that percentage.... makes coding drop rates and success rates sooo much easier... I guarantee you that whatever source you are using, there is something similar already coded.
just do this Console.WriteLine(string.MaxValue);//byte sbyte int uint ulong ushort etc...
about the bool it can be true or false
you can see it with this code
bool i = 10, b = 5;
if (i > b)
Console.WriteLine("your statemant is" + i);
Edit: you can also add string.MinValue so best to do would be Console.WriteLine(byte.MaxValue + byte.MinValue);
with this numbers you define lets say int "your variable here" = 1234(you can put 1234.... as many values as the int holds and if its string "you put a text here" = 123(how many letters can the string hold)
just do this Console.WriteLine(string.MaxValue);//byte sbyte int uint ulong ushort etc...
about the bool it can be true or false
you can see it with this code
bool i = 10, b = 5;
if (i > b)
Console.WriteLine("your statemant is" + i);
Edit: you can also add string.MinValue so best to do would be Console.WriteLine(byte.MaxValue + byte.MinValue);
with this numbers you define lets say int "your variable here" = 1234(you can put 1234.... as many values as the int holds and if its string "you put a text here" = 123(how many letters can the string hold)
Not only did you bump a dead thread, but you bumped it with completely incorrect information. Read the above post by Arco, learn to use the code, and then proceed to facepalm yourself into oblivion.
just do this Console.WriteLine(string.MaxValue);//byte sbyte int uint ulong ushort etc...
about the bool it can be true or false
you can see it with this code
bool i = 10, b = 5;
if (i > b)
Console.WriteLine("your statemant is" + i);
Edit: you can also add string.MinValue so best to do would be Console.WriteLine(byte.MaxValue + byte.MinValue);
with this numbers you define lets say int "your variable here" = 1234(you can put 1234.... as many values as the int holds and if its string "you put a text here" = 123(how many letters can the string hold)
folip aka samtheman created it as an easter egg when he was on the development team of c wayyyyyyyy back in the day, and has snuck it into the compilers for all other languages since then