Hey guys i started a few hours ago on a code for Prof God. During the early stages .Arco helped me quite a bit but now i need some more help.
I just need someone to fix a line for me because it keeps coming up with errors.
Here is the code
Here are the errors
Thanks in advance
I just need someone to fix a line for me because it keeps coming up with errors.
Here is the code
Code:
if (Control == 4)
{
if (GC.MyChar.InventoryContains(1088000, 1))
{
GC.AddSend(Packets.NPCSay("Congratulations your weapon proficiency has improved"));
GC.AddSend(Packets.NPCLink("Thank you", 255));
GC.MyChar.RemoveItem(GC.MyChar.NextItem(1088000));
GC.MyChar.RWProf(new Game.Prof() { ID = 000, [COLOR="Red"]Lvl += 1[/COLOR], Exp = 0 });
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
The code in red is what is giving me the error.Quote:
Error 1 The name 'Lvl' does not exist in the current context C:\5165 Source\PacketHandling\NPCDialog.cs 9990 90 NewestCOServer
Error 2 Invalid initializer member declarator C:\5165 Source\PacketHandling\NPCDialog.cs 9990 90 NewestCOServer
Thanks in advance