Its pretty obvious that you dont understand even the simplest aspects of C# or even logical methodology. Go and learn the basics, then learn how to write a server for conquer.
I mean you dont even know how to use the tools your using correctly, the error being thrown if you right click on it in the error list and click show error help it will take you to a webpage which in 95% of cases explains to you why the error is occuring and how to avoid it.
Its pretty obvious that you dont understand even the simplest aspects of C# or even logical methodology. Go and learn the basics, then learn how to write a server for conquer.
I mean you dont even know how to use the tools your using correctly, the error being thrown if you right click on it in the error list and click show error help it will take you to a webpage which in 95% of cases explains to you why the error is occuring and how to avoid it.
that`s what i am doing , an i learned more .
now i am working on a huge system none worked on it before me , doesn't that mean i am learning anything ? ## Edited i added it and fixed all issue`s i got. but it`s public void , not public static void , so how to start it from program.cs ?
Unless the method is inside of his player class, which he would then loop through the ingame players calling said method to change the map color.
Code:
public class Player
{
public void ChangeToNightTime()
{
const uint COLOR_NIGHT = 0x595959;
var packet = new Network.GamePackets.Data(true);
packet.UID = Entity.UID;
packet.ID = 104;
packet.dwParam = COLOR_NIGHT;
Send(Packet);
}
}
...
foreach (var player in ServerBase.Kernel.GamePool.Values)
{
player.ChangeToNightTime();
}
You can't declare a constant inside of a method...
also, style rules state that they should be declared first (before variables).
now i am working on a huge system none worked on it before me , doesn't that mean i am learning anything ? ## Edited i added it and fixed all issue`s i got. but it`s public void , not public static void , so how to start it from program.cs ?
I could start build a computer from scratch, does that mean I know wtf I'm doing?
In all seriousness, to correct some of these posts, the "UID" field isn't processed by the client (at least on 4267; i doubt it's changed), and you can declare consts wherever, since they get compiled to the value they hold anyway.
how i can upgrade 5375 to 5520 ? 10/19/2011 - CO2 Private Server - 8 Replies how i can upgrade 5375 to 5520 ?
plz can any one help me and very thanks
can any one help me my source phoenix
can any one help me my source phoenix
Question in 5520 source 09/23/2011 - CO2 Private Server - 4 Replies I've solved every bug in the source except one, that when I wear any garment it decrease my battle power. So where is the problem ?!
Edit:ROFL, 60 views and 0 replies 0.o, is my problem hard?
okay, anybody guess any solution lol.
anyway if you don't know the problem solving reply to give me hope :D
i need all pleas SpwanPacket 5520 09/19/2011 - CO2 Private Server - 7 Replies ples all i need spewanPacket 5520 and Packet Level for 5520 plese chrg level is read 0
5520 help with this error source 08/25/2011 - CO2 Private Server - 3 Replies hi all thanks for releasing your fang work but NEED help with this connection error please help
thanks god bless you all
http://img72.xooimage.com/files/1/5/9/condones-2c 0f3f2.jpg
spawn name Packet 5520 08/21/2011 - CO2 Private Server - 11 Replies hellos Evert Body
this pic http://img832.imageshack.us/img832/7425/44423762.j pg
that when i try to upgrade my sourse from 5375 to 5520 i upgrade the spawn to see the monsters and other chars but i can't see the names of them
and the char is visble??
so i need spawn packet make it fully working