Register for your free account! | Forgot your password?

You last visited: Today at 20:29

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

Advertisement



[Help]5369 source

Discussion on [Help]5369 source within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
coreymills's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 555
Received Thanks: 99
[Help]5369 source

i attempted to create a command for the source but its not working could someone help please

Report command:
Code:
case "report":
                                        {
                                            Conquer_Online_Server.Database.Report.addReport(client, "");
                                            break;
                                        }
addReport:
Code:
public static void addReport(Receivers.ClientState client, string text)
        {
            MySqlCommand cmd = new MySqlCommand(MySqlCommandType.INSERT);
            cmd.Insert("bugs").Insert("Name", client.Entity.Name).Insert("BugReport", text);
        }
any help would be greatly appreciated,
coreymills
coreymills is offline  
Old 08/01/2011, 16:25   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,379
Well where exactly does it go wrong?

You're trying to add a blank report in that example so try with some information (you could have the table set to not allow blank fields).

Here's what I use in my source

Code:
var reportString = string.Join(" ", data, 1, data.Length - 1);
            user.CreateBugReport(reportString);
That will pull everything past the initial command (/report or w/e you like) and you can then add it to your database like you are.
pro4never is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Comands for 12talis source (5369)
08/14/2012 - CO2 PServer Guides & Releases - 28 Replies
Here all commands How use? Go to source>Instances>Chat>Commands.cs And read!!!!!!:mad:
[Question]12tails 5369 source
07/30/2011 - CO2 Private Server - 0 Replies
where are the skills being coded in the source fire and tornado are getting exp but thunder doesnt
Can i ask about this for 5369 source
05/14/2011 - CO2 Private Server - 5 Replies
I have this error I dunno what the cause can you tell me what to do please I have here the image.
Help me source 5369!
05/13/2011 - CO2 Private Server - 5 Replies
In the configuration there is no where to put the name of the database or login and password for app serv help plz:o sorry my bad english



All times are GMT +1. The time now is 20:31.


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.