Question

Re: Question

Postby Conor » 17 Feb 2013, 15:53

When using this event, I'm getting this error on compilation:

Error CS0234
Message: The type or namespace name 'AnnounceWinners' does not exist in the namespace 'MCDzienny.InfectionSystem' (are you missing an assembly reference?)
Line: 172

I'm not sure how to overcome this. I tried things like adding "using MCDzienny;" as a new library at the top, but that did nothing. Please help me Dzienny :)
Conor (Conanza121)
User avatar
Conor
Coder
 
Posts: 390
Joined: 10 Oct 2012, 21:36
Location: @21Conor

Re: Question

Postby dzienny » 17 Feb 2013, 16:52

I'm sorry I forgot about one important thing. There should be
Code: Select all
using MCDzienny.InfectionSystem;

or the event and other objects should be accesed via
Code: Select all
InfectionSystem.InfectionSystem.AnnounceWinners +=

I think the former option is best.
User avatar
dzienny
Administrator
 
Posts: 1181
Joined: 23 Jan 2011, 14:27

Re: Question

Postby Conor » 17 Feb 2013, 19:37

dzienny wrote:I'm sorry I forgot about one important thing. There should be
Code: Select all
using MCDzienny.InfectionSystem;

or the event and other objects should be accesed via
Code: Select all
InfectionSystem.InfectionSystem.AnnounceWinners +=

I think the former option is best.


Thank you :)
Conor (Conanza121)
User avatar
Conor
Coder
 
Posts: 390
Joined: 10 Oct 2012, 21:36
Location: @21Conor

Re: Question

Postby dzienny » 18 Feb 2013, 18:08

I added a new event to the version 9.3:
Code: Select all
...

void Init()
{
    InfectionSystem.RoundStart += RoundStart;
}

RoundStart(object sender, RoundStartEventArgs e)
{
    // Code.
}

...


,where RoundStartEventArgs:
Code: Select all
namespace MCDzienny.InfectionSystem
{
    public class RoundStartEventArgs : EventArgs
    {
        public Level CurrentInfectionLevel { get; set; }
    }
}

I hope it will be useful.
User avatar
dzienny
Administrator
 
Posts: 1181
Joined: 23 Jan 2011, 14:27

Re: Question

Postby toystory_justin » 19 Feb 2013, 10:24

9.3? It's still 9.1.1? o.O Oh, or do you mean your gonna make a new update soon? w/e, im not good now. Im kind of sick
toystory_justin
 
Posts: 224
Joined: 11 Nov 2012, 07:12
Location: On a dark place

Re: Question

Postby dzienny » 19 Feb 2013, 13:36

toystory_justin wrote:9.3? It's still 9.1.1? o.O Oh, or do you mean your gonna make a new update soon? w/e, im not good now. Im kind of sick


Due to a new SQLite library file you have to perform a manual update. Copy all the files from the unpacked Update.rar to your current server location. Also, create a backup beforehand, just in case!
User avatar
dzienny
Administrator
 
Posts: 1181
Joined: 23 Jan 2011, 14:27

Re: Question

Postby toystory_justin » 22 Feb 2013, 09:32

Manual update? What happened to the Update Notification?
toystory_justin
 
Posts: 224
Joined: 11 Nov 2012, 07:12
Location: On a dark place

Re: Question

Postby HelloWorldCool » 22 Feb 2013, 21:40

toystory_justin wrote:Manual update? What happened to the Update Notification?


The update probably has to be manual to fix existing bugs.

Maybe dzienny will send a message to all software holders telling them to do a manual update; he's sent a message b4 in the past. ;)
Download fCraft maps! - viewtopic.php?f=25&t=3012!



Note: The Developer(s) of MCDzienny have resigned and the software is no longer supported.
Errors are bound to occur and Mojang has not attempted to resolve them.
User avatar
HelloWorldCool
 
Posts: 867
Joined: 18 Oct 2011, 00:19
Location: MCDzienny Forums, HelloWorldCool Forums

Previous

Return to Help in Coding

Who is online

Users browsing this forum: No registered users and 4 guests

cron