Register for your free account! | Forgot your password?

You last visited: Today at 19:07

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

Advertisement



[Help] C# Errors :S

Discussion on [Help] C# Errors :S within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Hoven's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 456
Received Thanks: 128
[Help] C# Errors :S

Hi, ive been coding up a scratch lotf with Emily and we came across a few errors we couldn't fix, if you know how to, please let one of us know

Errors:
Error 1 A namespace does not directly contain members such as fields or methods
Code line:
Quote:
Originally Posted by Hoven View Post
case 74:
Error 2 'COServer_Project.General.SaveTimer_Elapsed' is a 'field' but is used like a 'method'
Code line:
Quote:
Originally Posted by Hoven View Post
SaveTimer.Elapsed += new ElapsedEventHandler(SaveTimer_Elapsed);
Error 3 'COServer_Project.General.RestartTimer_E' is a 'field' but is used like a 'method'
Code line:
Quote:
Originally Posted by Hoven View Post
RestartTimer.Elapsed += new ElapsedEventHandler(RestartTimer_E);
Thanks :P
~Hoven
Hoven is offline  
Old 01/11/2009, 12:44   #2
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
For the timer troubles, in your voids, do you have it like this?

public void RestartTimer_E(object source, ElapsedEventArgs e)
{
}


I think that is needed, not sure.
_Emme_ is offline  
Thanks
1 User
Old 01/11/2009, 16:43   #3
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
As for the case 74:, you're either switching outside of a class, or you ****** up where you put some curly brackets.
tao4229 is offline  
Thanks
1 User
Old 01/11/2009, 19:02   #4
 
Hoven's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 456
Received Thanks: 128
@Emme hey that worked for 1 but when i did it with SaveTimer it just gave mea diff error, the error is:

Error 2 Ambiguity between 'COServer_Project.General.SaveTimer_Elapsed(object , System.Timers.ElapsedEventArgs)' and 'COServer_Project.General.SaveTimer_Elapsed'
Hoven is offline  
Reply


Similar Threads Similar Threads
[Guide] 2 Fixes on Sro-Errors (no bot-errors)
03/04/2011 - SRO Guides & Templates - 5 Replies
Hey guys, here are 2 fixes for silkroad-errors (not bot-errors!). I know they dont appear for many people but some guys have problems with it. 1st Fix: "Server is undergoing inspection..." Why does this error appear? Because Joymax has some problems with the Login-Servers. Fix: Step1): Click on "Start" then on "Run"
my bot gets errors?
06/14/2010 - Ragnarok Online - 2 Replies
i have a auto buffer and it pulls up players as #unknown3453453 and it says cant find player ip 67.202.104.229 port 6900 version 24
Grr >.> More Errors >
05/12/2010 - CO2 Private Server - 4 Replies
Well this is my createcharacter class for 5165 and i Type its Name Choose Body Size Wen I click Enter It Gives me The Error Try again i just cant find wats the problem using System; using Source_Project.GameSystem; using Source_Project.Structures; using MySql.Data.MySqlClient; namespace Source_Project {
[Help] Errors
02/18/2010 - CO2 Private Server - 6 Replies
#request close Thanks spare!
44 Errors.
08/08/2009 - CO2 Private Server - 4 Replies
:l. I implemented a RB guard tutorial thing into my server but I have like so many errors. I removed all of it but i cant find any other releases, and looking through the code its far too complex for me too code my own from scratch. This is the tut: http://www.elitepvpers.com/forum/co2-pserver-discus sions-questions/177649-release-rb-guard.html I think this error causing the rest is 'COServer_Project.SingleMob' does not contain a constructor that takes '15' arguments'



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


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.