|
You last visited: Today at 08:01
Advertisement
Timer
Discussion on Timer within the CO2 Private Server forum part of the Conquer Online 2 category.
07/08/2009, 04:33
|
#1
|
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
|
Timer
Would thi sbe how i go about making a timer for my server?
In General.cs
Code:
public static System.Timers.Timer Thetimer;
Code:
//Regular Save Timer
Thetimer = new System.Timers.Timer();
Thetimer.Interval = 5000;//5 seconds
Thetimer.Elapsed += new ElapsedEventHandler(Thetimer_Elapsed);
Thetimer.Start();
and then im done
is ther anything im missing
im making an auto save timer for lotf
|
|
|
07/08/2009, 04:52
|
#2
|
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
|
just a hint dont make it auto save every 5 secs thats WAY to much
|
|
|
07/08/2009, 04:59
|
#3
|
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
|
Quote:
Originally Posted by hunterman01
just a hint dont make it auto save every 5 secs thats WAY to much
|
how often do you suggest?
15 seconds?
|
|
|
07/08/2009, 05:02
|
#4
|
elite*gold: 20
Join Date: May 2008
Posts: 1,103
Received Thanks: 254
|
Ever 2-3mins is good
|
|
|
07/08/2009, 06:12
|
#5
|
elite*gold: 0
Join Date: Sep 2008
Posts: 617
Received Thanks: 38
|
No every 1 second xD
|
|
|
07/08/2009, 06:20
|
#6
|
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
|
Don't make a timer to save, waste of memory and all that jazz.
Just have it save when people logout, and maybe when they do important ****, like trade or win items, etc.
|
|
|
07/08/2009, 06:32
|
#7
|
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
|
Quote:
Originally Posted by kinshi88
Don't make a timer to save, waste of memory and all that jazz.
Just have it save when people logout, and maybe when they do important ****, like trade or win items, etc.
|
and how would i go about doing that?
|
|
|
07/08/2009, 07:34
|
#8
|
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
|
Quote:
Originally Posted by Arcotemple:)
and how would i go about doing that?
|
Honestly i would say every 10-15 mintues or like kinshi said when they log out
|
|
|
07/08/2009, 11:57
|
#9
|
elite*gold: 111
Join Date: Feb 2008
Posts: 2,161
Received Thanks: 646
|
LOTF has a save function for that. Saves whenever a person logs off or you close the server using ''enter''
|
|
|
07/08/2009, 12:03
|
#10
|
elite*gold: 0
Join Date: May 2009
Posts: 52
Received Thanks: 3
|
Check My error  Thanks
|
|
|
07/08/2009, 12:04
|
#11
|
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
|
Quote:
Originally Posted by habbo245
Check My error  Thanks
|
Not your thread.
|
|
|
07/08/2009, 12:13
|
#12
|
elite*gold: 111
Join Date: Feb 2008
Posts: 2,161
Received Thanks: 646
|
@habbo245
Show us the code.
With the somewhat lame spanish knowledge I have I can confirm it's a socket error.
Well post ur code here.
|
|
|
07/08/2009, 19:23
|
#13
|
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
|
you need timer elapsed
|
|
|
 |
Similar Threads
|
Help with gw timer
02/10/2010 - CO2 Private Server - 0 Replies
Hey, i am using a timer on my gw and im trying to figure out how to make it that the timer could restart before it ends. if you can help me then reply here or add me on msn
[email protected]
thx in advance
flamers will be reported
|
[HELP] Timer
05/26/2009 - CO2 Private Server - 3 Replies
I need help making a timer in lotf
|
[au3]Timer
08/26/2008 - General Coding - 2 Replies
hallo, habe eine frage zu einem timer, undzwar soll es im endeffekt so aussehen das sich ein label auf einer form im sekundentakt von selbst aktualisiert, quasi wie nen timer ;)
leider hab ich kein plan wo ich da ansetzen kann.
hier mal ein codeausschnitt:
$countdown ist die variable die in dem label aktualisiert werden soll.
.....
#Region ### START Koda GUI section ### Form=
|
Timer
06/04/2008 - Metin2 - 13 Replies
Hey leute kann mir jemand bitte eine datei programmiern, die nachdem start den pc in 90 mins herunterfährt. :)
ich bräuchte ihn für den angelbot;), damit ich ihn starten kann, wenn ich in der schule bin, ohne das der pc umsonst so lang an bleibt.:D
|
Timer
01/14/2005 - General Gaming Discussion - 8 Replies
Hi Leutz
Dieser Timer is ne gute hilfe fuer alle Klassen die beim OP fight mit machen.
Der Timer zeigt euch welcher Buff gerade ausgeht (10min Resistbuff) und wann Shelter/def ausläuft... für das schöne syncgelame ^^... gf and hf ;)
http://home.pages.at/smoker/timer/timer.zip
mfg das BluB
|
All times are GMT +1. The time now is 08:01.
|
|