mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-20 12:46:07 +08:00
[server] Implement CVehiclePool contructor
This commit is contained in:
@ -7,6 +7,7 @@
|
|||||||
// -------
|
// -------
|
||||||
|
|
||||||
#define MAX_PLAYERS 1000
|
#define MAX_PLAYERS 1000
|
||||||
|
#define MAX_VEHICLES 2000
|
||||||
|
|
||||||
#define DEFAULT_MAX_PLAYERS 50
|
#define DEFAULT_MAX_PLAYERS 50
|
||||||
#define DEFAULT_LISTEN_PORT 8192
|
#define DEFAULT_LISTEN_PORT 8192
|
||||||
@ -61,6 +62,8 @@
|
|||||||
// SA-MP
|
// SA-MP
|
||||||
|
|
||||||
typedef unsigned short PLAYERID;
|
typedef unsigned short PLAYERID;
|
||||||
|
typedef unsigned short VEHICLEID;
|
||||||
|
|
||||||
#include "console.h"
|
#include "console.h"
|
||||||
#include "scrhttps.h"
|
#include "scrhttps.h"
|
||||||
#include "scrtimers.h"
|
#include "scrtimers.h"
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
CVehiclePool::CVehiclePool()
|
||||||
|
{
|
||||||
|
for(VEHICLEID VehicleID = 0; VehicleID != MAX_VEHICLES; VehicleID++) {
|
||||||
|
field_2014[VehicleID] = 0;
|
||||||
|
field_3F54[VehicleID] = 0;
|
||||||
|
field_D4[VehicleID] = 0;
|
||||||
|
}
|
||||||
|
memset(field_0,0,sizeof(field_0));
|
||||||
|
field_5E94 = 0;
|
||||||
|
}
|
||||||
|
@ -5,7 +5,14 @@
|
|||||||
class CVehiclePool // size: WL 24216
|
class CVehiclePool // size: WL 24216
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
char _gap0[24216];
|
char field_0[212];
|
||||||
|
int field_D4[2000];
|
||||||
|
int field_2014[2000];
|
||||||
|
int field_5E94;
|
||||||
|
|
||||||
|
public:
|
||||||
|
CVehiclePool();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user