CouplesPK[Help]

12/23/2011 17:41 alex4war#1
Hey guys,

Getting this error at C.MyTeam.CouplesPK_Kills = 0; line in couplespk.cs
Error: nullreferenceexception object reference not set to an instance of an object
Am i missing or not seeing something?
[Only registered and activated users can see links. Click Here To Register...]
12/23/2011 18:40 pro4never#2
People reallllyyyy need to just do a bit of reading/searching...

NullReferenceException... Not set to an instance of an object.

You're trying to perform an action on something that is not yet assigned. You need to make sure that you create/assign a team before you then try to use a team.

It's like saying "Pick one of the cards I'm holding" when I'm not holding any cards, you'd look at me like I'm a retard which is exactly what the compiler is doing to you.
12/23/2011 21:12 F i n c h i#3
What's with this rainbow writing?
12/23/2011 21:40 BaussHacker#4
MyTeam is null.
12/24/2011 13:27 alex4war#5
Quote:
Originally Posted by BaussHacker View Post
MyTeam is null.
thnx.