pawn-lang / YSI-Includes

Just the YSI include files, none of the extra stuff.
211 stars 106 forks source link

warning 213: tag mismatch Bitstream #604

Closed plakapenka closed 7 months ago

plakapenka commented 2 years 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"

xunder-matth commented 2 years ago

Add BitStream to CUSTOM_TAG_TYPES.

#define CUSTOM_TAG_TYPES BitStream

plakapenka commented 2 years ago

it works. ty