Closed plakapenka closed 7 months ago
` hook stock OnIncomingCustomPacket(playerid, rpcid, BitStream:bs) { if(rpcid == RPC_SHOW_FACTORY_GAME) { new exit_type; BS_ReadUint8(bs, exit_type);
if (exit_type) { // успешно Zavod_PlayerBuildSucces(playerid); } else { // закрыл SetPVarInt(playerid, "pZavod_State", ZAVOD_PLAYER_STATE_STARTED); } return ~1; } return continue(playerid, rpcid, bs);
} `
Err: warning 213: tag mismatch: expected tags "Bit", "Text", "Group", "File", "Float", "Text3D", or none ("_"); but found "BitStream"
warning 213: tag mismatch: expected tags "Bit", "Text", "Group", "File", "Float", "Text3D", or none ("_"); but found "BitStream"
Add BitStream to CUSTOM_TAG_TYPES.
BitStream
CUSTOM_TAG_TYPES
#define CUSTOM_TAG_TYPES BitStream
it works. ty
` hook stock OnIncomingCustomPacket(playerid, rpcid, BitStream:bs) { if(rpcid == RPC_SHOW_FACTORY_GAME) { new exit_type; BS_ReadUint8(bs, exit_type);
} `
Err:
warning 213: tag mismatch: expected tags "Bit", "Text", "Group", "File", "Float", "Text3D", or none ("_"); but found "BitStream"