07.07.2016, 05:37
(
Последний раз редактировалось BR3TT; 23.04.2017 в 12:22.
)
Quote:
|
There is indeed a bug with filterscripts.
When I use loadfs, OnPlayerCommandReceived/Performed callbacks and commands from that filterscript aren't called, only the ones from gamemode, even when I call commands from filterscript. When I load the filterscript from server.cfg, no gamemode command is working, only commands from that filterscript. I return 1 in both callbacks in both gamemode and filterscripts. Also, this is what crashdetect prints when I load again that filterscript, after it was unloaded: . Yes, the plugin was loaded correctly, I use 3.1. I have pawn Код:
You should test this yourself and solve it. |
Код:
[15:32:25] Loading filterscript 'Frosty-Admin-System.amx'... [15:32:25] Error: Function not registered: 'PC_Init' [15:32:25] Loaded 1 filterscripts.
Код:
#define FILTERSCRIPT //Includes #include <a_samp> #include <a_mysql> //Version R39.5 ( https://github.com/pBlueG/SA-MP-MySQL/re.../tag/R39-5 ) #include <Pawn.CMD> //Version 3.1.1 ( https://github.com/urShadow/Pawn.CMD/releases/tag/3.1.1 ) //Colours for chat #define COLOR_WHITE (0xFFFFFFFF) #define COLOR_RED (0xFF0000FF) #define COLOR_CYAN (0x33CCFFFF) #define COLOR_LIGHTRED (0xFF6347FF) #define COLOR_LIGHTGREEN (0x9ACD32FF) #define COLOR_YELLOW (0xFFFF00FF) #define COLOR_GREY (0xAFAFAFFF) #define COLOR_PURPLE (0xD0AEEBFF) #define COLOR_LIGHTYELLOW (0xF5DEB3FF) #define COLOR_DARKBLUE (0x1394BFFF) #define COLOR_ORANGE (0xFFA500FF) #define COLOR_LIME (0x00FF00FF) #define COLOR_GREEN (0x33CC33FF) #define COLOR_BLUE (0x2641FEFF) #define COLOR_LIGHTBLUE (0x007FFFFF) native WP_Hash(buffer[], len, const str[]); public OnFilterScriptInit() { print("[----------------------------------]"); print("[--------Frosty Admin System-------]"); print("[-----Created by: BR3TT-----]"); print("[----------Version: 1.0.0----------]"); print("[----------------------------------]"); return 1; } public OnFilterScriptExit() { return 1; } main() { return 1; }


