Register for your free account! | Forgot your password?

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

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

Advertisement



(Coemu V2) What is wrong with that damn command

Discussion on (Coemu V2) What is wrong with that damn command within the CO2 Private Server forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
elite*gold: 20
Join Date: Jul 2007
Posts: 613
Received Thanks: 486
(Coemu V2) What is wrong with that **** command

hello all

anyone have some exp with mysql would have a look and tell me what is wrong with that **** command

Code:
MySqlCommand Cmd = new MySqlCommand("UPDATE `guilds` SET `Wins` = " + TheGuild.Wins + ", `HoldingPole` = " + TheGuild.HoldingPole + ", `Bulletin` = " + TheGuild.GBull + ", `Enemies` = " + AllEnemies + ", `Allies` = " + AllAllies + ", `Fund` = " + TheGuild.GFund + ", `Members` = " + TheGuild.GMems.Count + " WHERE `GuildID` = " + ID, DatabaseConnection.NewConnection());
and here is the error msg

Quote:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near Enemies=0,Allies=2,Fund=5000,Members=1, where GuildId=1 Line 1
and the same msg appears once be4 when i tried to save the player spouse
samehvan is offline  
Old 07/25/2009, 02:31   #2
 
elite*gold: 0
Join Date: Mar 2008
Posts: 55
Received Thanks: 4
WHERE `GuildID` = " + ID + ";", DatabaseConnection.NewConnection());
tribalost is offline  
Old 07/25/2009, 03:16   #3
 
elite*gold: 20
Join Date: Jul 2007
Posts: 613
Received Thanks: 486
Quote:
Originally Posted by tribalost View Post
WHERE `GuildID` = " + ID + ";", DatabaseConnection.NewConnection());
no ,that should give a syntax error , and notice that it already does the first part successfully , it saves the wins,holdingpole and Bulletin
samehvan is offline  
Old 07/25/2009, 03:38   #4
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
If it's a string your writing to the Sql, you have to add ' ' s around it.

So like:
Code:
`Bulletin` = [B][U]'[/U][/B]" + TheGuild.GBull + "[B][U]'[/U][/B]
kinshi88 is offline  
Old 07/25/2009, 12:48   #5
 
elite*gold: 20
Join Date: Jul 2007
Posts: 613
Received Thanks: 486
Quote:
Originally Posted by kinshi88 View Post
If it's a string your writing to the Sql, you have to add ' ' s around it.

So like:
Code:
`Bulletin` = [B][U]'[/U][/B]" + TheGuild.GBull + "[B][U]'[/U][/B]
#solved thanks for your help
Request close or delete
samehvan is offline  
Old 07/25/2009, 14:51   #6
 
elite*gold: 20
Join Date: Aug 2005
Posts: 1,734
Received Thanks: 1,001
#Closed as requested.
tanelipe is offline  
Closed Thread


Similar Threads Similar Threads
What's wrong with my Nighttime command(impulse's source)
07/21/2010 - CO2 Private Server - 4 Replies
Heres my command #region Night case "night": { Client.GameState.ScreenColor = 5855577; GamePackets.GeneralData Packet = new GamePackets.GeneralData(true); Packet.UID = client.Entity.UID; Packet.GetType(); ...
[HELP] CoEmu 2 GM robe command or Yellow Goodluck
06/14/2009 - CO2 Private Server - 4 Replies
:D thanks
damn bro
07/15/2004 - Off Topic - 58 Replies
solangsam holst mich ein mit den posting points oller spammer <_< ;p



All times are GMT +1. The time now is 16:47.


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