[help] fucking UpdateSpawn

01/06/2009 22:30 reborn666#1
this is wrong
Quote:
public static void UpdateSpawn(Character Me)
{
if (Me != null)
{
foreach (DictionaryEntry en in AllClients)// this fuck line
{
Character Charr = (Character)en.Value;
and i change this for
Quote:
public static void UpdateSpawn(Character Me)
{
if (Me != null)
{
IDictionaryEnumerator en = AllClients.GetEnumerator();
while (en.MoveNext())//now is here -.-
{
Character Charr = (Character)en.Value;
the shitt console says

Quote:
Accoun† £ogada Com Sucesso Chiozo IP >--> 189.34.156.196
System.NullReferenceException: Referência de objeto não definida para uma instância de um objeto.
em UltimateCo.World.UpdateSpawn(Character Me) na C:\Documents and Settings\LOST\Desktop\FuckCo\UltimateCo\World.cs:l inha 700
em UltimateCo.Client.GetPacket(Byte[] data) na C:\Documents and Settings\LOST\Desktop\FuckCo\UltimateCo\Client.cs: linha 6059

WTF? can any help me
01/07/2009 00:36 InfamousNoone#2
foreach loops on ICollection's automatically translate into your 2nd code (lol).
01/07/2009 01:00 Korvacs#3
You have a null entry in your client list apparently, and it doesnt like it.

Stop using buggy source thats my advice :)