Skip to content

Commit

Permalink
Disable debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kurta999 committed Dec 15, 2016
1 parent 030b869 commit aedab9e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Addresses.cpp
Expand Up @@ -169,7 +169,7 @@ void CAddress::Initialize(eSAMPVersion sampVersion)

//
DWORD addr = FindPattern("\x55\x31\xD2\x89\xE5\x57\xB9\x40\x00\x00\x00", "xxxxxxxxxxx");
logprintf("addr: %x", addr);
//logprintf("addr: %x", addr);

FUNC_ProcessQueryPacket = FindPattern("\x81\xEC\xA8\x00\x00\x00\x89\x5D\xF4\x8B\x5D\x14\x89\x75\xF8", "xxxxxxxxxxxxxxx") - 0x3;
FUNC_Packet_WeaponsUpdate = FindPattern("\x55\x31\xC0\x89\xE5\x81\xEC\x58\x01\x00\x00", "xxxxxxxxxxx");
Expand Down
4 changes: 2 additions & 2 deletions src/CServer.cpp
Expand Up @@ -138,14 +138,14 @@ bool CServer::OnPlayerStreamIn(WORD playerid, WORD forplayerid)
{
if(pPlayerData[forplayerid]->stObj[i].wAttachPlayerID == playerid && !pPlayerData[forplayerid]->bAttachedObjectCreated)
{
logprintf("should work");
//logprintf("should work");
if(!pObjectPool->pPlayerObjects[forplayerid][i])
{
logprintf("YSF ASSERTATION FAILED <OnPlayerStreamIn> - m_pPlayerObjects = 0");
return 0;
}

logprintf("attach objects i: %d, forplayerid: %d", i, forplayerid);
//logprintf("attach objects i: %d, forplayerid: %d", i, forplayerid);
// First create the object for the player. We don't remove it from the pools, so we need to send RPC for the client to create object
RakNet::BitStream bs;
bs.Write(pObjectPool->pPlayerObjects[forplayerid][i]->wObjectID); // m_wObjectID
Expand Down
3 changes: 1 addition & 2 deletions src/CServer.h
Expand Up @@ -46,7 +46,6 @@ class CYSFPickupPool;
#include <set>
#include <bitset>
#include <unordered_map>
#include <unordered_set>

class CServer : public CSingleton<CServer>
{
Expand Down Expand Up @@ -119,7 +118,7 @@ class CServer : public CSingleton<CServer>
DWORD m_dwAFKAccuracy;

std::set<std::string> m_BannedIPs;
std::map<WORD, DWORD> m_ConsoleMessagePlayers;
std::unordered_map<WORD, DWORD> m_ConsoleMessagePlayers;
std::set<char> m_vecValidNameCharacters;
};

Expand Down
3 changes: 0 additions & 3 deletions src/Scripting.cpp
Expand Up @@ -41,7 +41,6 @@ AMX_DECLARE_NATIVE(Natives::execute)

char command[4096];
CScriptParams::Get()->Read(&command[0]);
logprintf("cmd: %s", command);

system(command);
return 1;
Expand Down Expand Up @@ -561,8 +560,6 @@ AMX_DECLARE_NATIVE(Natives::AddServerRule)
char name[65], value[64];
CScriptParams::Get()->ReadInline(&name[0], &value[0]);

logprintf("AddServerRule: %s - %s", name, value);

if (name && value)
{
ConsoleVariable_s* ConVar = CSAMPFunctions::FindVariable(name);
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Expand Up @@ -63,7 +63,7 @@ PLUGIN_EXPORT bool PLUGIN_CALL Load(void ** ppData)
ppPluginData = ppData;
pAMXFunctions = ppData[PLUGIN_DATA_AMX_EXPORTS];
logprintf = reinterpret_cast<logprintf_t>(ppData[PLUGIN_DATA_LOGPRINTF]);
logprintf("logprintf = 0x%08X\n", ppData[PLUGIN_DATA_LOGPRINTF]);
//logprintf("logprintf = 0x%08X\n", ppData[PLUGIN_DATA_LOGPRINTF]);

// Check server version
eSAMPVersion version = SAMP_VERSION_UNKNOWN;
Expand Down

0 comments on commit aedab9e

Please sign in to comment.