Skip to content

Instantly share code, notes, and snippets.

../../modules/Network/vendor/RakNet/BitStream.cpp:1189:19: error: no matching function for call to 'begin'
std::copy(std::begin(other.stackData), std::end(other.stackData), this->stackData);
^~~~~~~~~~
/usr/sbin/../lib64/gcc/x86_64-pc-linux-gnu/6.3.1/../../../../include/c++/6.3.1/initializer_list:89:5: note: candidate template ignored: could not match 'initializer_list<type-parameter-0-0>' against 'unsigned char *'
begin(initializer_list<_Tp> __ils) noexcept
^
../../modules/Network/vendor/RakNet/BitStream.cpp:1189:48: error: no matching function for call to 'end'
std::copy(std::begin(other.stackData), std::end(other.stackData), this->stackData);
^~~~~~~~
/usr/sbin/../lib64/gcc/x86_64-pc-linux-gnu/6.3.1/../../../../include/c++/6.3.1/initializer_list:99:5: note: candidate template ignored: could not match 'initializer_list<type-parameter-0-0>' against 'unsigned char *'
@sbx320
sbx320 / makepkg
Created January 2, 2016 16:46
makepkg with silent dropping of --as-root and removed do not run as root errors
#!/usr/bin/bash
#
# makepkg - make packages compatible for use with pacman
# Generated from makepkg.sh.in; do not edit by hand.
#
# Copyright (c) 2006-2014 Pacman Development Team <pacman-dev@archlinux.org>
# Copyright (c) 2002-2006 by Judd Vinet <jvinet@zeroflux.org>
# Copyright (c) 2005 by Aurelien Foret <orelien@chez.com>
# Copyright (c) 2006 by Miklos Vajna <vmiklos@frugalware.org>
# Copyright (c) 2005 by Christian Hamar <krics@linuxforum.hu>
diff --git a/MTA10_Server/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp b/MTA10_Server/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp
index 97e587d..24e0e4e 100644
--- a/MTA10_Server/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp
+++ b/MTA10_Server/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp
@@ -7834,7 +7834,7 @@ CBlip* CStaticFunctionDefinitions::CreateBlipAttachedTo ( CResource* pResource,
// Valid icon and size?
if ( CBlipManager::IsValidIcon ( ucIcon ) && ucSize <= 25 )
{
- CBlip* pBlip = m_pBlipManager->Create ( m_pMapManager->GetRootElement () );
+ CBlip* pBlip = m_pBlipManager->Create ( pResource->GetDynamicElementRoot () );
@sbx320
sbx320 / gist:9ca90c9140566d8de525
Created June 21, 2014 19:09
MTA 1.4 classlib-rc
-- Developer: sbx320
-- License: MIT
-- Github Repos: https://github.com/sbx320/lua_utils
--// classlib
--|| A library providing several tools to enhance OOP with MTA and Lua
--\\
SERVER = triggerServerEvent == nil
CLIENT = not SERVER
DEBUG = DEBUG or false
@sbx320
sbx320 / gist:f6ffb8bbb6e4987a49cc
Created June 21, 2014 19:04
MTA 1.4 OOP Magic
-- Magic to allow MTA elements to be used as data storage
-- e.g. localPlayer.foo = 12
oop = {}
oop.mta_metatable = {}
oop.elementInfo = setmetatable({}, { __mode = "k" })
oop.getMTATypeMetatable = function(t)
local element = false
if t == "player" then return debug.getmetatable(localPlayer or getRandomPlayer())