Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char PluginName[64];
- methodmap Errors {
- public static void SetPluginName(char[] name) {
- strcopy(PluginName, sizeof(PluginName), name);
- }
- public static void ThrowCriticalError(int errorCode, char[] error) {
- LogError("[Error] Wystąpił błąd podczas wykonywania wtyczki %s [#%i]. Kod błędu: %s.", PluginName, errorCode, error);
- SetFailState("Wystąpił błąd w działaniu aplikacji [#%i]. Szczegóły znajdziesz w logach błędów.", errorCode);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement