[server] Implement CVehiclePool contructor

This commit is contained in:
RD42 2023-11-22 23:39:02 +08:00
parent 4a2c40731d
commit 69e0a37b4e
3 changed files with 24 additions and 1 deletions

View File

@ -7,6 +7,7 @@
// -------
#define MAX_PLAYERS 1000
#define MAX_VEHICLES 2000
#define DEFAULT_MAX_PLAYERS 50
#define DEFAULT_LISTEN_PORT 8192
@ -61,6 +62,8 @@
// SA-MP
typedef unsigned short PLAYERID;
typedef unsigned short VEHICLEID;
#include "console.h"
#include "scrhttps.h"
#include "scrtimers.h"

View File

@ -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;
}

View File

@ -5,7 +5,14 @@
class CVehiclePool // size: WL 24216
{
private:
char _gap0[24216];
char field_0[212];
int field_D4[2000];
int field_2014[2000];
int field_5E94;
public:
CVehiclePool();
};
#endif