А можно вообще как-нибудь просмотреть содержимое Mobile ? А то я пробую вывести значение уровня и опыта, а мне выдаются ошибки. Если писать m_Level и m_Exp, то ошибка вот такая:
Код
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
+ Misc/WebStatus.cs:
CS0103: Line 103: The name 'm_Exp' does not exist in the current context
CS0103: Line 105: The name 'm_Level' does not exist in the current context
а если писать m.Level и m.Exp, то вот что:
Код
Errors:
+ Misc/WebStatus.cs:
CS0117: Line 104: 'Server.Mobile' does not contain a definition for 'Exp'
CS0117: Line 106: 'Server.Mobile' does not contain a definition for 'Level'
Попробовал сделать аналогию на гильдию:
Код
op.Write( m.Map );
op.Write( ")</strong></font></td><td><font color=\"#B00000\"><strong>" );
if ( m != null )
{
Exp ex = m.Exp as Exp;
op.Write( m.Exp );
}
else
{
op.Write ( "" );
}
op.Write( "</strong></font></td><td><font color=\"#B00000\"><strong>" );
if ( m != null )
{
Level l = m.Level as Level;
op.Write( l.Level );
}
else
{
op.Write( "" );
}
op.Write( "</strong></font></td><td><font color=\"#B00000\"><strong>" );
Ну, и соответсвенно, ошибка:
Код
Errors:
+ Misc/WebStatus.cs:
CS0246: Line 105: The type or namespace name 'Exp' could not be found (are y
ou missing a using directive or an assembly reference?)
CS0117: Line 105: 'Server.Mobile' does not contain a definition for 'Exp'
CS0246: Line 105: The type or namespace name 'Exp' could not be found (are y
ou missing a using directive or an assembly reference?)
CS0117: Line 106: 'Server.Mobile' does not contain a definition for 'Exp'
CS0246: Line 115: The type or namespace name 'Level' could not be found (are
you missing a using directive or an assembly reference?)
CS0117: Line 115: 'Server.Mobile' does not contain a definition for 'Level'
CS0246: Line 115: The type or namespace name 'Level' could not be found (are
you missing a using directive or an assembly reference?)
Может кто объяснит почему такие ошибки и что я делаю не так ? Вдруг, я близок к истине.
Take me to the Breathe and BE...