Galera no caso esse em verelho e data base correto?Código:if(gQueryManager.ExecQuery("SELECT ProductId,Information1,Information2,Status,PackageIndex,PlanIndex FROM License WHERE UserId=%d",UserId) != 0) { while(gQueryManager.Fetch() != SQL_NO_DATA) { char IpAddress[16] = {0}; char HardwareId[36] = {0}; int ProductId = gQueryManager.GetAsInteger("ProductId"); gQueryManager.GetAsString("Information1",IpAddress,sizeof(IpAddress)); gQueryManager.GetAsString("Information2",HardwareId,sizeof(HardwareId)); if(GetDatabaseProductId(lpMsg->ServerType) == ProductId && strcmp(gClientManager[index].m_IpAddr,IpAddress) == 0 && strcmp(lpMsg->CustomerHardwareId,HardwareId) == 0) { pMsg.Status = (BYTE)gQueryManager.GetAsInteger("Status"); pMsg.PackageType = (BYTE)gQueryManager.GetAsInteger("PackageIndex")+1; pMsg.PlanType = (BYTE)gQueryManager.GetAsInteger("PlanIndex")+1; memcpy(pMsg.CustomerName,lpMsg->CustomerName,sizeof(pMsg.CustomerName)); memcpy(pMsg.CustomerHardwareId,lpMsg->CustomerHardwareId,sizeof(pMsg.CustomerHardwareId)); break; } } } gQueryManager.Close(); } gSocketManager.DataSend(index,(BYTE*)&pMsg,pMsg.size); gQueryManager.ExecQuery("INSERT INTO AuthLog (IpAddress,CustomerName,HardwareId,Type,Version,Status,Date) VALUES ('%s','%s','%s',%d,%d,%d,getdate())",gClientManager[index].m_IpAddr,lpMsg->CustomerName,lpMsg->CustomerHardwareId,lpMsg->ServerType,0,pMsg.Status); gQueryManager.Close();
Criei Tabela License com todas as colunas de cima
e a tabela AuthLog correto?
Foi exatamente o que disse... mas ok. O mundo é dos tolos.
AuthServerODBC = AuthServer
AuthServerUSER = sa
AuthServerPASS = testeste@2020
AuthServerPort = 1256
MaxIpConnection = 50
Mesmo com database etc.. o sql continuar dando sem conexao falta algo no authserver.ini ?
Só criar a ODBC do auth, e restaurar a db do sql que tem nas files... e fazer a alteração para seu ip do Xor Key na source.
@[Somente membros podem ver os links. ]
Infelizmente na área de mu existe sempre pessoas que só querem se gabar falando que tem, e não compartilha nada. em vez de ajudar a comunidade para o crescimento dela.
mais graças a DEUS eu não sou um deste, segue database original xteam do autenticador. e qualquer duvida estou a disposição.
[Somente membros podem ver os links. ]
[Somente membros podem ver os links. ]
Esqueci a ODBC mais só criar ela
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC. INI]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC. INI\AUTENTICADOR]
"Driver"="C:\\WINDOWS\\system32\\SQLSRV32.dll"
"Description"="XTeam"
"Server"="(local)"
"Database"="XTeam"
"LastUser"="sa"
"Trusted_Connection"="Yes"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC. INI\ODBC Data Sources]
"XTeam"="SQL Server"
Muito Obrigado@[Somente membros podem ver os links. ]
Infelizmente na área de mu existe sempre pessoas que só querem se gabar falando que tem, e não compartilha nada. em vez de ajudar a comunidade para o crescimento dela.
mais graças a DEUS eu não sou um deste, segue database original xteam do autenticador. e qualquer duvida estou a disposição.
[Somente membros podem ver os links. ]
[Somente membros podem ver os links. ]
Esqueci a ODBC mais só criar ela
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC. INI]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC. INI\AUTENTICADOR]
"Driver"="C:\\WINDOWS\\system32\\SQLSRV32.dll"
"Description"="XTeam"
"Server"="(local)"
"Database"="XTeam"
"LastUser"="sa"
"Trusted_Connection"="Yes"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC. INI\ODBC Data Sources]
"XTeam"="SQL Server"