ANTICHAT

ANTICHAT (https://forum.antichat.xyz/index.php)
-   Общие вопросы программирования (https://forum.antichat.xyz/forumdisplay.php?f=206)
-   -   Структура CNetGame [0.3.7 R1] (https://forum.antichat.xyz/showthread.php?t=1392321)

kin4stat 27.06.2021 02:20

Цитата:

Сообщение от ukenjutsu

Структуры вроде правильные. Почему крашит? 😞

CNetGame 0.3.7-R1:





Код:

class
CNetGame
{
public
:
struct
Pools
{
CActorPool
*
pActor
;
CObjectPool
*
pObject
;
CGangZonePool
*
pGangZone
;
CLabelPool
*
pLabel
;
CTextDrawPool
*
pTextDraw
;
CMenuPool
*
pMenu
;
CPlayerPool
*
pPlayer
;
CVehiclePool
*
pVehicle
;
CPickupPool
*
pPickup
;
}
;
struct
ServerInfo
{
unsigned
int
uiIP
;
unsigned
short
usPort
;
}
;
struct
Settings
{
bool
bUseCJWalk
;
int
uiDeathDropMoney
;
float
fWorldBoundaries
[
4
]
;
bool
bAllowWeapons
;
float
fGravity
;
bool
bDisableInteriorEnterExits
;
bool
bVehicleFriendlyFire
;
bool
bHoldTime
;
bool
bInstagib
;
bool
bZoneNames
;
bool
bFriendlyFire
;
int
iClassesAvailable
;
float
fNameTagsDrawDistance
;
bool
bManualVehicleEngineAndLight
;
unsigned
char
byteWorldTime_Hour
;
unsigned
char
byteWorldTime_Minute
;
unsigned
char
byteWeather
;
bool
bNameTagsBehindWalls
;
int
iPlayerMarkersMode
;
float
fGlobalChatRadiusLimit
;
bool
bShowNameTags
;
bool
bLimitGlobalChatRadius
;
}
;
void
*
pUnk0
;
struct
ServerInfo
*
pServerInfo
;
unsigned
char
byteSpace
[
24
]
;
char
szHostAddress
[
257
]
;
// ОК
char
szHostName
[
259
]
;
// ОК
bool
bNameTagStatus
;
unsigned
int
uiPort
;
// всегда 0?
unsigned
int
uiMapIcons
[
100
]
;
int
iLanMode
;
int
iGameState
;
// -3493858939 (скорее всего какой-то мусор)
unsigned
int
ulConnectTick
;
struct
Settings
*
pSettings
;
// при обращении краш
void
*
pRakClient
;
struct
Pools
*
pPools
;
// при обращении краш
}
;



SAMP-API/include/sampapi/0.3.7-R1/CNetGame.h at multiver · BlastHackNet/SAMP-API

A library for interacting with functions, classes and structures of SA-MP client - BlastHackNet/SAMP-API

github.com


Код:





Код:

#pragma pack(push, 1)

#pragma pack(pop)



Время: 20:27