Register for your free account! | Forgot your password?

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

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

Advertisement



Problem with update Mysql.!

Discussion on Problem with update Mysql.! within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
Problem with update Mysql.!

Hey Professionals

i've Problem with my Source, i made Change Name Npc but there were a problem when i change my name from npc it doesn't make any sense.
and i put the code it's not work
My Source Uses SubSonic

Two Codes Deon't Work

First code

PHP Code:
 public static void UpdateData(Client.GameState clientstring columnobject value)
        {
            
EntityCollection ent = new EntityCollection();
            
ent.LoadAndCloseReader(Entity.FetchByParameter("UID"client.Entity.UID));
            if (
ent.Count 0)
            {
                
ent[0].SetColumnValue(columnvalue);
                
ent[0].Save();
            }
        } 
PHP Code:
public static void UpdateName(Client.GameState client)
        {
            
UpdateData(client"Name"client.Entity._CName);
        } 
Second Code

PHP Code:
    public static void UpdateName(Client.GameState client)
        {
            
MySqlCommand command = new MySqlCommand(MySqlCommandType.UPDATE);
            
command.Update("entities").Set("Name"client.Entity.Name).Where("UID"client.Entity.UID).Execute();
        } 
and First code get me error

System.Exception: Can't save: Name requires a value

at SubSonic.ActiveRecord`1.Save(String userName)
at SubSonic.ActiveRecord`1.Save()

Thanks
|xabi| is offline  
Old 01/28/2012, 01:14   #2
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,210
Received Thanks: 4,113
Why do you do that...
You always make threads about basic errors (which you know... I'm fine with), but you welcome everyone by saying "Hey professionals". .... ..... It's not rocket science.

Spirited is offline  
Thanks
2 Users
Old 01/28/2012, 11:12   #3
 
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
Quote:
Originally Posted by Fаng View Post
Why do you do that...
You always make threads about basic errors (which you know... I'm fine with), but you welcome everyone by saying "Hey professionals". .... ..... It's not rocket science.



Of course Fang i always Welcome Everyone By saying "Hey Professionals" as the Professionals 'll help me and i 'm sure from That!!

1 day to fix and dun need to Fix
|xabi| is offline  
Reply


Similar Threads Similar Threads
[PROBLEM]:[Root]:Mysql:[...]/tmp/mysql.sock
10/22/2011 - Metin2 Private Server - 3 Replies
Hallo Community habe jetzt seit ein Paar Tagen einen Fehler Namens: failed, retrying in 5 secondsmysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Screen: http://img809.imageshack.us/img809/9805/helpg.png
[Visual Basic 2010] Mysql Update Tabelle
10/20/2011 - .NET Languages - 3 Replies
Ich habe ein problem ich speichere eine textbox mit : myCommand.CommandText = "UPDATE Status1 SET Name1='" & (GamePublic.Text) & "'" Nur habe ich mehr und so klappt es nicht : myCommand.CommandText = "UPDATE Status1 SET Name1='" & (GamePublic.Text) & "'" myCommand.CommandText = "UPDATE Status1 SET Status1='" & (StatusPublic.Text) & "'" untereinander geht nicht wie kann ich mehr querys speichern auf diese weise ?
MySql problem!
06/11/2011 - Metin2 Private Server - 1 Replies
#Erledigt Please Close!
Problem mit MySQL
10/22/2009 - Flyff Private Server - 22 Replies
Ich hab folgendes Problem mit MySQL. Ich kann den Service nicht starten. Wenn ich MySQL Server Instance Configuration mache und alles so mache wie in dem PServer Guide beschrieben und dann auf Execute klicke kommt bei "Prepare configuration" und "Write configuration file" ein Haken und bei "Start Service" kommt dan ein Kreuz. Unten steht dann: "Could not start the service MySQL. Error: 0" Ich hoffe ihr könnt mir mal wieder helfen ;-)



All times are GMT +2. The time now is 11:58.


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