mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-20 12:46:07 +08:00
[bot] Update CNetGame::Init(...)
This commit is contained in:
@ -212,17 +212,17 @@ void CNetGame::Init(PCHAR szHostOrIp, int iPort,
|
|||||||
|
|
||||||
sprintf(szGameModeFile, "npcmodes/%s.amx", szNpcMode);
|
sprintf(szGameModeFile, "npcmodes/%s.amx", szNpcMode);
|
||||||
if (!m_pGameMode->Load(szGameModeFile))
|
if (!m_pGameMode->Load(szGameModeFile))
|
||||||
|
{
|
||||||
|
//logprintf("NPC: I can't load %s so I'm quiting.", szGameModeFile);
|
||||||
exit(1);
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
m_pRakClient->SetPassword(szPass);
|
m_pRakClient->SetPassword(szPass);
|
||||||
m_pRakClient->Connect(szHostOrIp,iPort,0,0,10);
|
m_pRakClient->Connect(szHostOrIp,iPort,0,0,10);
|
||||||
|
|
||||||
m_iGameState = GAMESTATE_CONNECTING;
|
m_iGameState = GAMESTATE_CONNECTING;
|
||||||
|
|
||||||
/*
|
//logprintf("NPC(%s): connecting to %s:%d...",szPlayerName,szHostOrIp,iPort);
|
||||||
char s[256];
|
|
||||||
sprintf(s,"Bot(%s): connecting to %s:%d...",szPlayerName,szHostOrIp,iPort);
|
|
||||||
OutputDebugString(s);*/
|
|
||||||
|
|
||||||
m_iSpawnsAvailable = 0;
|
m_iSpawnsAvailable = 0;
|
||||||
m_byteWorldTime = 12;
|
m_byteWorldTime = 12;
|
||||||
|
Reference in New Issue
Block a user