Register for your free account! | Forgot your password?

You last visited: Today at 09:55

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

Advertisement



Weird problem

Discussion on Weird problem within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Weird problem

Well i made Public class Called Lottery Then i add Made public Field of this Lottery Class like that

Code:
publi class Lottery
{
   public uint WonID;
}

Code:
Public Lottery LotteryInformations;
Then when i Assign Value to this Instance i Receive Null Reference exception although its not Null As i Assigned value to it for example this code

Code:
if (client.Entity.Level == 140)
{
   client.LotteryInformations.WonID = 711524;
}
What did i do wrong ...i think i've everything Right :@
shadowman123 is offline  
Old 05/02/2012, 08:53   #2
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
LotteryInformations is null.

Make sure you're declaring a new instance of LotteryInformations.

Code:
LotteryInformations = new Lottery();
Place that in the constructor of your client class.
I don't have a username is offline  
Thanks
1 User
Old 05/02/2012, 09:00   #3
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Quote:
Originally Posted by I don't have a username View Post
LotteryInformations is null.

Make sure you're declaring a new instance of LotteryInformations.

Code:
LotteryInformations = new Lottery();
Place that in the constructor of your client class.
Aha thats y Thx ..It worked Well .i've fallen into that error alot Thx Alot Again

#request Delete Or Close
shadowman123 is offline  
Reply


Similar Threads Similar Threads
Weird problem!
04/04/2012 - CO2 Private Server - 7 Replies
Does anyone know what causing this weird problem? http://i42.tinypic.com/sa41.jpg only happens when am wearing a shield.
KD-Bot Weird Problem Plz Help
01/22/2012 - SRO Private Server - 4 Replies
hello i am trying to use the KD-bot for Atomix server.. i got the loader to work but the KDBotLite.exe will not transfer/extract to the folder . if anyone knows how i can copy or extract the KDBotlite.exe part to the vsro folder please let me know
weird problem
08/05/2011 - CO2 Private Server - 0 Replies
well it was weird that when i finished coding an npc it comes up with so weird error..the error in case after #region but when i just refer the pointer to it it says..invalid expression and for the code it says it represent 32 bit smthing ANyways heres the pic showing that http://www5.0zz0.com/2011/08/05/04/743698916.jpg
[help]weird problem
07/30/2009 - CO2 Private Server - 5 Replies
i've tryed using like 20 different register pages there all setup right says that the account has been successfully created but when i look in phpmyadmin there is no account there so its not inserting it into the db can anyone help me with this i've been at it for 3 days now. using lotf source
a weird problem
03/23/2009 - Silkroad Online - 4 Replies
ok i have a cyber cafe... master pc: vga card: ati radeon xpress 1250 processor: amd athlon 64 x2 dual core processor 4000+ ram: 2 gb cyber pc's: vga card: ati radeon hd3200 processor: amd athlon 64 x2 dual core processor 5000+



All times are GMT +1. The time now is 09: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.