mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[server] Implement CVehiclePool contructor
This commit is contained in:
parent
4a2c40731d
commit
69e0a37b4e
@ -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"
|
||||
|
@ -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
|
||||
{
|
||||
private:
|
||||
char _gap0[24216];
|
||||
char field_0[212];
|
||||
int field_D4[2000];
|
||||
int field_2014[2000];
|
||||
int field_5E94;
|
||||
|
||||
public:
|
||||
CVehiclePool();
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user