- Joined
- Feb 4, 2009
- Messages
- 1
- Reaction score
- 0
I really don't know too much about C# and I need help right now.
The errors are
Error 1 Cannot implicitly convert type 'string' to 'int'
Error 2 An object reference is required for the non-static field, method, or property 'WzLib.WzFile.SaveToDisk(string)'
Error 3 An object reference is required for the non-static field, method, or property 'WzLib.WzFile.GetObjectsFromWildcardPath(string)'
Heres the scripting.
using WzLib;
using ManagedZLib;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WzRepacker
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void SaveStats_Click(object sender, EventArgs e)
{
int Path = ("C:\\Nexon\\Maplestory"); Error 1 here
WzFile.SaveToDisk("C:\\Nexon\\Maplestory"); Error 2 here
}
private void SaveGraphics_Click(object sender, EventArgs e)
{
foreach (WzSubProperty info in WzFile.GetObjectsFromWildcardPath("Mob.wz/*.img/info")) info.AddProperty(new WzCompressedIntProperty("notAttack", 1)); Error 3 here
}
}
}
The errors are
Error 1 Cannot implicitly convert type 'string' to 'int'
Error 2 An object reference is required for the non-static field, method, or property 'WzLib.WzFile.SaveToDisk(string)'
Error 3 An object reference is required for the non-static field, method, or property 'WzLib.WzFile.GetObjectsFromWildcardPath(string)'
Heres the scripting.
using WzLib;
using ManagedZLib;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WzRepacker
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void SaveStats_Click(object sender, EventArgs e)
{
int Path = ("C:\\Nexon\\Maplestory"); Error 1 here
WzFile.SaveToDisk("C:\\Nexon\\Maplestory"); Error 2 here
}
private void SaveGraphics_Click(object sender, EventArgs e)
{
foreach (WzSubProperty info in WzFile.GetObjectsFromWildcardPath("Mob.wz/*.img/info")) info.AddProperty(new WzCompressedIntProperty("notAttack", 1)); Error 3 here
}
}
}