This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example of using Incognito's streamer plugin | |
// | |
// Map: Karlip's Christmas Tree | |
// http://forum.sa-mp.com/showthread.php?t=58588 | |
#include <sampgdk/a_players.h> | |
#include <sampgdk/a_samp.h> | |
#include <sampgdk/core.h> | |
#include <sampgdk/interop.h> | |
#include <sampgdk/sdk.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.solidfiles.com/d/8a41e27901/ - Windows | |
http://www.solidfiles.com/d/2e2ba6d676/ - Linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
gdb -f ./samp03svr -ex "target remote | vgdb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set disassembly-flavor intel | |
define hook-stop | |
list *$pc | |
x/5i $pc | |
x/8w $sp | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This difference file is created by The Interactive Disassembler | |
pawnc.dll | |
00002B50: 51 8B | |
00002B51: 8B 44 | |
00002B52: 03 24 | |
00002B53: 33 04 | |
00002B54: C9 C7 | |
00002B55: 85 00 | |
00002B56: C0 00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) 2013, Zeex | |
// All rights reserved. | |
// | |
// Redistribution and use in source and binary forms, with or without | |
// modification, are permitted provided that the following conditions are met: | |
// | |
// 1. Redistributions of source code must retain the above copyright notice, | |
// this list of conditions and the following disclaimer. | |
// 2. Redistributions in binary form must reproduce the above copyright notice, | |
// this list of conditions and the following disclaimer in the documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Capturing AMX backtrce printed by CrashDetect to a string. | |
// Requires fixes2 plugin by Y_Less: http://forum.sa-mp.com/showthread.php?t=375925 | |
#include <a_samp> | |
#if !defined MAX_PUBLIC_NAME | |
#define MAX_PUBLIC_NAME 32 // compiler-enforced limit | |
#endif | |
#if !defined MAX_BACKTRACE_LENGTH | |
#define MAX_BACKTRACE_LENGTH 10240 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"rulers": [80, 100, 120], | |
"auto_match_enabled": false, | |
"font_face": "Consolas", | |
"font_size": 12.0, | |
"line_numbers": true, | |
"word_wrap": false, | |
"wrap_width": 0, | |
"hot_exit": false, | |
"remember_open_files": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; amxplugin.asm - a rewrite of amxplugin.cpp in asm | |
; Copyright (c) 2011 Zeex | |
global _PluginInit | |
global _amx_Align16 | |
global _amx_Align32 | |
global _amx_Align64 | |
global _amx_Allot | |
global _amx_Callback | |
global _amx_Clone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstring> | |
#include <sampgdk/amx.h> | |
#include <sampgdk/core.h> | |
cell CallNative(AMX *amx, AMX_NATIVE native, int num_params) { | |
int params_size = num_params * sizeof(cell); | |
amx_Push(amx, params_size); | |
cell *params; | |
amx_GetAddr(amx, amx->stk, ¶ms); |