- Joined
- Aug 21, 2007
- Messages
- 67
- Reaction score
- 0
How can i teleport all to me?i made this but it's not working...
Error:
Error 1 'System.Collections.Hashtable' does not contain a definition for 'Teleport' and no extension method 'Teleport' accepting a first argument of type 'System.Collections.Hashtable' could be found (are you missing a using directive or an assembly reference?) C:\Documents and Settings\Vali\Desktop\co-fortress\Steals Server Pack\Source\PowerSource CO\COServerProject1\COServerProject\Client.cs 5641 68 COServerProject
Code:
[SIZE=2][COLOR=#800000]
[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2][COLOR=#800000] (Splitter[0] == [/COLOR][/SIZE][SIZE=2][COLOR=#a31515]"/warpall"[/COLOR][/SIZE][SIZE=2][COLOR=#800000])
{
[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]foreach[/COLOR][/SIZE][SIZE=2][COLOR=#800000] ([/COLOR][/SIZE][SIZE=2][COLOR=#2b91af]DictionaryEntry[/COLOR][/SIZE][SIZE=2][COLOR=#800000] DE [/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]in[/COLOR][/SIZE][SIZE=2][COLOR=#800000] [/COLOR][/SIZE][SIZE=2][COLOR=#2b91af]World[/COLOR][/SIZE][SIZE=2][COLOR=#800000].AllChars)
{
[/COLOR][/SIZE][SIZE=2][COLOR=#2b91af]Character[/COLOR][/SIZE][SIZE=2][COLOR=#800000] Char = ([/COLOR][/SIZE][SIZE=2][COLOR=#2b91af]Character[/COLOR][/SIZE][SIZE=2][COLOR=#800000])DE.Value;
{
[/COLOR][/SIZE][SIZE=2][COLOR=#2b91af]World[/COLOR][/SIZE][SIZE=2][COLOR=#800000].AllChars.Teleport(MyChar.LocMap, MyChar.LocX, MyChar.LocY);
[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]break[/COLOR][/SIZE][SIZE=2][COLOR=#800000];
}
}
}
[/COLOR][/SIZE]
Error 1 'System.Collections.Hashtable' does not contain a definition for 'Teleport' and no extension method 'Teleport' accepting a first argument of type 'System.Collections.Hashtable' could be found (are you missing a using directive or an assembly reference?) C:\Documents and Settings\Vali\Desktop\co-fortress\Steals Server Pack\Source\PowerSource CO\COServerProject1\COServerProject\Client.cs 5641 68 COServerProject