mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-11-23 06:20:22 +00:00
[server] Fix compilation errors
This commit is contained in:
parent
ed7889a021
commit
55540b1f10
0
server/format.cpp
Normal file
0
server/format.cpp
Normal file
0
server/format.h
Normal file
0
server/format.h
Normal file
@ -41,6 +41,7 @@
|
||||
|
||||
#include <windows.h>
|
||||
#include <mmsystem.h>
|
||||
#include <shellapi.h>
|
||||
#include <time.h>
|
||||
#else
|
||||
#define SLEEP(x) { usleep(x * 1000); }
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
bool unnamed_1(PVECTOR vec)
|
||||
bool FUNC_1(PVECTOR vec)
|
||||
{
|
||||
if( vec->X <= 1.0f && vec->X >= -1.0f &&
|
||||
vec->Y <= 1.0f && vec->Y >= -1.0f &&
|
||||
@ -21,7 +21,7 @@ bool unnamed_1(PVECTOR vec)
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
bool unnamed_2(PVECTOR vec)
|
||||
bool FUNC_2(PVECTOR vec)
|
||||
{
|
||||
if( vec->X < 20000.0f && vec->X > -20000.0f &&
|
||||
vec->Y < 20000.0f && vec->Y > -20000.0f &&
|
||||
@ -34,7 +34,7 @@ bool unnamed_2(PVECTOR vec)
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
bool unnamed_3(PVECTOR vec)
|
||||
bool FUNC_3(PVECTOR vec)
|
||||
{
|
||||
if( vec->X < 100.0f && vec->X > -100.0f &&
|
||||
vec->Y < 100.0f && vec->Y > -100.0f &&
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
bool unnamed_1(PVECTOR vec); // unused
|
||||
bool unnamed_2(PVECTOR vec);
|
||||
bool unnamed_3(PVECTOR vec);
|
||||
bool FUNC_1(PVECTOR vec); // unused
|
||||
bool FUNC_2(PVECTOR vec);
|
||||
bool FUNC_3(PVECTOR vec);
|
||||
float GetLength(PVECTOR vec);
|
||||
void CrossProduct(PVECTOR out, PVECTOR vec1, PVECTOR vec2); // unused
|
||||
void Transform(PVECTOR out, PMATRIX4X4 mat, PVECTOR vec); // unused
|
||||
|
@ -645,6 +645,22 @@ void CNetGame::Process()
|
||||
*/
|
||||
}
|
||||
|
||||
void CNetGame::BroadcastData(char *szUniqueID,
|
||||
RakNet::BitStream *bitStream,
|
||||
PLAYERID excludedPlayer,
|
||||
char orderingStream)
|
||||
{
|
||||
// TODO: CNetGame::BroadcastData W: .text:0048E190 L: .text:080ABAD0
|
||||
}
|
||||
|
||||
void CNetGame::SendToPlayer(char *szUniqueID,
|
||||
RakNet::BitStream *bitStream,
|
||||
PLAYERID playerId,
|
||||
char orderingChannel)
|
||||
{
|
||||
// TODO: CNetGame::SendToPlayer W: .text:0048E440 L: .text:080AC1D0
|
||||
}
|
||||
|
||||
void CNetGame::LoadBanList()
|
||||
{
|
||||
// TODO: CNetGame::LoadBanList W: 48EAE0 L: 80AF1A0
|
||||
|
@ -4,7 +4,9 @@
|
||||
|
||||
#define MAX_SPAWNS 319
|
||||
|
||||
#define GAMESTATE_STOPPED 0
|
||||
#define GAMESTATE_RUNNING 1
|
||||
#define GAMESTATE_RESTARTING 2
|
||||
|
||||
#define INVALID_ID 0xFFFF
|
||||
|
||||
@ -94,6 +96,16 @@ public:
|
||||
|
||||
void Process();
|
||||
|
||||
void BroadcastData( char *szUniqueID,
|
||||
RakNet::BitStream *bitStream,
|
||||
PLAYERID excludedPlayer,
|
||||
char orderingStream );
|
||||
|
||||
void SendToPlayer( char *szUniqueID,
|
||||
RakNet::BitStream *bitStream,
|
||||
PLAYERID playerId,
|
||||
char orderingChannel );
|
||||
|
||||
void LoadBanList();
|
||||
|
||||
// CLASS SYSTEM
|
||||
|
@ -2,6 +2,8 @@
|
||||
#ifndef SAMPSRV_PLAYERPOOL_H
|
||||
#define SAMPSRV_PLAYERPOOL_H
|
||||
|
||||
#define INVALID_PLAYER_ID 0xFFFF
|
||||
|
||||
class CPlayerPool // size: WL 199024
|
||||
{
|
||||
private:
|
||||
|
@ -740,6 +740,12 @@
|
||||
<File
|
||||
RelativePath=".\exceptions.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\format.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\format.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\gangzonepool.cpp">
|
||||
</File>
|
||||
@ -815,6 +821,12 @@
|
||||
<File
|
||||
RelativePath=".\resource.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\runutil.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\runutil.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\server.rc">
|
||||
</File>
|
||||
|
@ -10,6 +10,7 @@
|
||||
static cell AMX_NATIVE_CALL n_open(AMX* amx, cell* params)
|
||||
{
|
||||
// TODO: n_open
|
||||
return 0;
|
||||
}
|
||||
|
||||
// native db_close(DB:db);
|
||||
|
Loading…
Reference in New Issue
Block a user