MatchServer - Database Clean System
How I can make this work correctly, because I have it included in my MatchServer project compiles and serves as yet.
Is this what you want to install on my MatchServer.
http://forum.ragezone.com/f245/match...system-912753/
No I get this message in my log MatchServer.
PHP Code:
[02/21/13 21:59:12] Match Server Created (Port:6000)
================================== Server Clean info ======================================
CLEAN : Release Date : Feb 21 2013 21:34:47
CLEAN : Credits : DelPa, SeaTroll
CLEAN : Clan cleaning - SUCCESS.
CLEAN : Character ranking updated - SUCCESS.
CLEAN : Clan ranking updated - SUCCESS.
CLEAN : Survival ranking updated - SUCCESS.
CLEAN : Updated duel tournament ranking and timestamp - SUCCESS.
Re: MatchServer - Database Clean System
So i think it is working properly ! :/:
Re: MatchServer - Database Clean System
Quote:
Originally Posted by
Ronny786
So i think it is working properly ! :/:
You do not understand, I have installed the Scontrol.cpp, Scontrol.hy otlv4.h MatchServer in my project, but still did not work and there is nothing that works message.
How do I make it work correctly?.
Re: MatchServer - Database Clean System
Quote:
Originally Posted by
jorklenis2
You do not understand, I have installed the Scontrol.cpp, Scontrol.hy otlv4.h MatchServer in my project, but still did not work and there is nothing that works message.
How do I make it work correctly?.
why dont you make separate console application and make it run through shellexecute ?
Re: MatchServer - Database Clean System
Quote:
Originally Posted by
Ronny786
why dont you make separate console application and make it run through shellexecute ?
How to do that, can you tell me?.
Re: MatchServer - Database Clean System
eer .. ok , simply make a console application in vs10 or 03 whatever.
put that .exe file in matchserver folder .
now open matchserver source .. go to matchserver.cpp
write execute function above this line
Code:
void RcpLog(const char *pFormat,...)
write this :
Code:
ShellExecute(NULL,"open","filename.exe",0,0,NULL);
thats all, while starting matchserver, it will start your ranking updater automatically.
Re: MatchServer - Database Clean System
I insert the 3 files where in my cscommon or in my project MatchServer?.
I mean these files: SControl.cpp, Scontrol.h and otlv4.h
Re: MatchServer - Database Clean System
Like 3 different threads with different accounts for the same exact shit.
Add the 3 files to CSCommon project, then, include SControl.h on MMatchServer.cpp and finally call SControl::Main(); into MMatchServer::Create.
Now stop spamming, ty.
Re: MatchServer - Database Clean System
I want to know how the console application note is interesting, also note that you will appreciate.
Quote:
Originally Posted by
adz28
Like 3 different threads with different accounts for the same exact shit.
Add the 3 files to CSCommon project, then, include SControl.h on MMatchServer.cpp and finally call SControl::Main(); into MMatchServer::Create.
Now stop spamming, ty.
Something similar as well:
PHP Code:
SControl::Main();
if( !SControl() )
{
mlog( "init ranking update.\n" );
return false;
}
Do not get mad, remember that no one is born with learning.
Re: MatchServer - Database Clean System
Dude, I don't understand why you can't understand such simple instructions like that one...
bool MMatchServer::Create(int nPort)
{
SControl::Main();
Re: MatchServer - Database Clean System
these is correcto?.
PHP Code:
#define SERVER_CONFIG_FILENAME "./server.ini"
GetPrivateProfileString("DB", "GunzDB", "GunzDB", m_szDB_DNS, 64, SERVER_CONFIG_FILENAME);
GetPrivateProfileString("DB", "sa", "sa", m_szDB_UserName, 64, SERVER_CONFIG_FILENAME);
GetPrivateProfileString("DB", "123456", "123456", m_szDB_Password, 64, SERVER_CONFIG_FILENAME);
Re: MatchServer - Database Clean System
Quote:
Originally Posted by
jorklenis2
these is correcto?.
PHP Code:
#define SERVER_CONFIG_FILENAME "./server.ini"
GetPrivateProfileString("DB", "GunzDB", "GunzDB", m_szDB_DNS, 64, SERVER_CONFIG_FILENAME);
GetPrivateProfileString("DB", "sa", "sa", m_szDB_UserName, 64, SERVER_CONFIG_FILENAME);
GetPrivateProfileString("DB", "123456", "123456", m_szDB_Password, 64, SERVER_CONFIG_FILENAME);
Crap, dude, don't modify anything in the files, it's not needed. Just add the files to CSCommon, include the class header and finally call the class method on bool MMatchServer::Create(int nPort).
Re: MatchServer - Database Clean System
But I change it and it works normally.
Re: MatchServer - Database Clean System
Quote:
Originally Posted by
adz28
Crap, dude, don't modify anything in the files, it's not needed. Just add the files to CSCommon, include the class header and finally call the class methode on bool MMatchServer::Create(int nPort).
Don't bother, OP is way smarter than you, he figured it all out.
Re: MatchServer - Database Clean System
Quote:
Originally Posted by
Wizkidje
Don't bother, OP is way smarter than you, he figured it all out.
So, that's what I imagine all already knew from the beginning that I had to fill that and if I worked, this is fantastic.