Register for your free account! | Forgot your password?

You last visited: Today at 02:17

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

Advertisement



C# Error :(

Discussion on C# Error :( within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2012
Posts: 63
Received Thanks: 20
-

This account has been archived
iU0U2bm9E1Gir7gf is offline  
Old 10/03/2012, 20:43   #2
 
elite*gold: 0
Join Date: May 2010
Posts: 793
Received Thanks: 268
Code:
        Game1 game = new Game1();
seems like an error to me, to you really want to create a new instance of, "Game1" in your Damage class, normaly there is only 1 instance of the Game class in total.
note that in
Code:
Damage Damage = new Damage();
always "Game1 game = new Game1();" is executet first.
nkkk is offline  
Old 10/03/2012, 20:45   #3
 
elite*gold: 0
Join Date: Jul 2012
Posts: 63
Received Thanks: 20
This account has been archived
iU0U2bm9E1Gir7gf is offline  
Old 10/03/2012, 20:54   #4
 
elite*gold: 0
Join Date: May 2010
Posts: 793
Received Thanks: 268
hmm you can write:
Code:
        Game1 game;
instead of
Code:
        Game1 game = new Game1();
and then make a constructor
Code:
public Damage(Game1 game)
{
this.game = game;
}
und dann übergibst du eben das game objekt im konstruktor.
nkkk is offline  
Old 10/03/2012, 21:36   #5
 
elite*gold: 10
Join Date: Aug 2012
Posts: 813
Received Thanks: 106
Quote:
Originally Posted by nkkk View Post
hmm you can write:
Code:
        Game1 game;
instead of
Code:
        Game1 game = new Game1();
and then make a constructor
Code:
public Damage(Game1 game)
{
this.game = game;
}
und dann übergibst du eben das game objekt im konstruktor.
Warum schreibst du erst auf English und dann auf Deutsch? ^^
GodHacker is offline  
Reply


Similar Threads Similar Threads
ERROR: GAME DB INIT ERROR : [DBNETLIB][ConnectionOpen (Connect()).]Specified SQL serv
08/06/2013 - Rappelz Private Server - 5 Replies
Hallo :D:D ich habe ein Problem, und zwar kommt bei mir immer diese Fehlermeldung wenn ich den CaptainHerlockServer starte ,,ERROR: GAME DB INIT ERROR : Ungültige Autorisierungsangab." Ich habe zwar schon etwas darüber gelesen, doch nur auf englisch und die meinte etwas über die DB files :confused::confused::confused: doch ich habe keine ahnung wo ich diese Files herbekomme, bitte um schnelle Hilfe Danke! :):)
İbot Error-Error Video- Error İmages-HELP
04/10/2012 - DarkOrbit - 11 Replies
SORRY, MY ENGLİSH VERY BAD.I USE TO GOOGLE TRANSLATE :) Most people trying to ibot but in my computer İbot not working. Declared out this error everywhere but I do not get answers Here's the error Video http://youtu.be/q0fK09v-K3c
API Error Code: 100 API Error Description: Invalid parameter Error Message: redirect_
04/08/2012 - elite*gold Trading - 2 Replies
API Error Code: 100 API Error Description: Invalid parameter Error Message: redirect_uri URL is not properly formatted Das bekomme ich wenn ich ne App installiere... ich habe schon 3 Apps richtig installiert, danach kam immer das bei anderen Apps die ich installiert habe.. was heisst das? redirect_uri URL is not properly formatted



All times are GMT +2. The time now is 02:18.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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