Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 19:03

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

Advertisement



[Help]Get Status Problem

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

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2006
Posts: 133
Received Thanks: 16
After while i keep getting this error, and that error don't let me use commands anymore, Do anyone know how to fix it?

This where the error take me

DataBase.cs
Quote:
public static uint GetStatus(string Acc)
{
MySqlDataAdapter DataAdapter = null;
DataSet DSet = new DataSet();
uint Return = 0;

DataAdapter = new MySqlDataAdapter("SELECT * FROM `Accounts` WHERE `AccountID` = '" + Acc + "'", Connection);
DataAdapter.Fill(DSet, "Status");

if (DSet.Tables["Status"].Rows.Count > 0)
{
DataRow DR = DSet.Tables["Status"].Rows[0];
Return = (uint)DR["Status"];
}
return Return;
}
Client.cs
Quote:
Status = DataBase.GetStatus(Account);
Please check this.
martoon is offline  
Old 11/09/2008, 20:38   #2
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
was going to, but you bump after like 40 minutes?
Go away.
tao4229 is offline  
Old 11/09/2008, 21:25   #3
 
elite*gold: 0
Join Date: Oct 2008
Posts: 430
Received Thanks: 176
Personally, don't know why you're even getting an error. My coding is the exact same, I can run it for hours, and nothing goes wrong for me.
Incariuz is offline  
Old 11/09/2008, 22:57   #4
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
Quote:
Originally Posted by martoon View Post
MySqlDataAdapter DataAdapter = null;
use:

MySqlDataAdapter DataAdapter = new MySqlDataAdapter();

it should work, because i bet u get the "Null Exception" error
alexbigfoot is offline  
Thanks
1 User
Old 11/09/2008, 23:10   #5
 
elite*gold: 20
Join Date: Aug 2005
Posts: 1,734
Received Thanks: 997
What's the error you're getting?
tanelipe is offline  
Old 11/10/2008, 17:34   #6
 
elite*gold: 0
Join Date: Dec 2006
Posts: 133
Received Thanks: 16
Quote:
Originally Posted by alexbigfoot View Post
use:

MySqlDataAdapter DataAdapter = new MySqlDataAdapter();

it should work, because i bet u get the "Null Exception" error
I'am trying right now, i will wait if it works i will tell you.
martoon is offline  
Old 11/11/2008, 16:29   #7
 
elite*gold: 0
Join Date: Dec 2006
Posts: 133
Received Thanks: 16
Here the error i get
i hope that anyone can help me fix it and fast
martoon is offline  
Old 11/11/2008, 20:14   #8
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 911
Some values are "Null" in Lines 9451 and 8700.
kinshi88 is offline  
Reply


Similar Threads Similar Threads
Problem / Status Shanii HP
09/25/2010 - Metin2 Private Server - 5 Replies
Hallo, Ich habe nun die Shanii hp für nen root-server Aber der Status geht nicht da steht immer Off. aber die von Black-Gaming gehen. was soll ich machen ?
[PROBLEM] Status- & Fertigkeitenneuverteilung
05/13/2010 - Metin2 Private Server - 2 Replies
Hallo, bei mir gibt es zurzeit ein großes Problem, die beiden Items, die in der Überschrift genannt wurden, funktionieren nicht, es liegt nicht an der Questdatei, auch mit der orginalen klappt es nicht. Wenn man auf diese Items klickt passiert einfach nichts. Ich habe vieles probiert und dachte ich hätte es geschafft, doch Fehlanzeige. Wenn ich mich zur OX Karte teleportiere und anschließend in FreeBSD "SH. /MAKE" ausführe und dann im Spiel den Befehl "RELOAD Q" ausführe, geht es auf der OX...
Status auf 9999 Problem
11/11/2009 - Metin2 Private Server - 9 Replies
Hallo, ich hab ein echt nerviges Problem. Hab nen Server erstellt (schon paar Wochen her) und wollte meinem Krieger den Status auf 9999 machen. Hat Vit, INT, STR und DEX. Hat dann auch durch Zufall und mehrerem Versuchen geklappt^^ Jetzt hab ich mir auf dem Account einen neuen Ninja erstellt und wollte da dass gleich machen. Und wieder funktioniert es nicht. Wenn ich alles einstelle und dann Server neustarte werdem die Einstellungen rückgängig gemacht.
Problem bei Status erhöung
10/30/2009 - Metin2 Private Server - 31 Replies
hallo, ich will meine statuspunkte auf 9999 oder 999 machen, aber wenn ich das machen will mit navicat, dann funzt das net, hab genau so gemacht wie im TUT beschrieben und server neugestartet doch meine Statuspunkte sind noch immer wie vorhin... kann mir jemand helfen danke mfg BlubbaBraun
Clubmt2 Status und Problem
05/17/2009 - Metin2 Private Server - 3 Replies
Also wie ihr alle wisst ist der LoginServer und WorldServer off.Ich hab mal so drangesessen und herausgefunden das die nix fixxen oder so. Die haben Wartungen wie es der Übersetzer gesagt hat, aber wann er online kommt ist noch nicht festgelegt.Im Chat sagen die auch das er so vlt. in Paar tagen oder 'ner Woche online kommt .Ob das stimmt weiß ich nicht aber wenn er Online ist editiere ich es rein.Ich kann euch auch die Regi und Downloadpage schicken oder das wie die GameAdmins das Spiel...



All times are GMT +2. The time now is 19:03.


Powered by vBulletin®
Copyright ©2000 - 2023, 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 ©2023 elitepvpers All Rights Reserved.