Register for your free account! | Forgot your password?

You last visited: Today at 17:55

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



CouplesPK[Help]

Discussion on CouplesPK[Help] within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2008
Posts: 98
Received Thanks: 6
Question CouplesPK[Help]

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?
alex4war is offline  
Old 12/23/2011, 18:40   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
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 ****** which is exactly what the compiler is doing to you.
pro4never is offline  
Old 12/23/2011, 21:12   #3
 
F i n c h i's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 785
Received Thanks: 422
What's with this rainbow writing?
F i n c h i is offline  
Old 12/23/2011, 21:40   #4
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
MyTeam is null.
BaussHacker is offline  
Old 12/24/2011, 13:27   #5
 
elite*gold: 0
Join Date: Jul 2008
Posts: 98
Received Thanks: 6
Quote:
Originally Posted by BaussHacker View Post
MyTeam is null.
thnx.
alex4war is offline  
Reply




All times are GMT +1. The time now is 17:55.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.