Witam. Mam ogromny probolem z kompilacja lokalna. Mam amx studio. Pugin ktorego chce skompilowac zawiera #include <logging> ktore to logging jest plikiem . Teraz nie wiem co ja mam zrobić. Wkladam oba pliki do tego samego folderu, tworze konstrukcje folderu z amxmodx i wszystko na nic . Ciagle wywala mi ze nie moze odczytac logging. Pomocy
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
Problem z kompilacja lokalna
Temat rozp.
wariat
, 04.02.2009 18:45
6 odpowiedzi w tym temacie
#1
Napisano 04.02.2009 18:45
#2
Napisano 04.02.2009 18:46
- Pisanie pluginów: http://amxx.pl/topic...napisac-plugin/
- Backlinks, podstawy i pozycjonowanie SEO: http://amxx.pl/topic...cjonowanie-seo/
#3
Napisano 04.02.2009 18:48
Pokaż kod
#4
Napisano 04.02.2009 19:02
friko zaraz cie zbanuje za twoje debilne wypowiedzi, co temat to spam - ogarnij sie czlowieku. wariat - znajdz biblioteke logging.inc, tam skad sciagales plugin powinna gdzies byc, nastepnie w folderze w ktorym znajduje sie amxxpc.exe masz folder include. wrzuc ten plik do niego i nie ma wyjscia zeby nie dzialalo.
#5
Napisano 04.02.2009 19:03
Sory ale DARKMAN napisał posta w czasie kiedy ja pisałem tego
OK DZIAŁA wielkie dzięki Darkman.
Dam może .sma i ten drugi plik bo strasznie wielkie to sma zajęło by z 2 strony.
Tutaj plik logging.inc który nie chce się dołączyć.
OK DZIAŁA wielkie dzięki Darkman.
Dam może .sma i ten drugi plik bo strasznie wielkie to sma zajęło by z 2 strony.
Tutaj plik logging.inc który nie chce się dołączyć.
#if defined _logging_included #endinput #endif #define _logging_included // logging flags #define LOG_AMXX 1 #define LOG_CHAT 2 #define LOG_FILE 4 // name,userid,authid,team stock create_log_entry(id, pluginAbbr[], logFlags, logText[]) { // get trigger information new name[32], userID[8], authID[32], team[16] if (id) // player triggered this log entry { get_user_name(id, name, 31) num_to_str(get_user_userid(id), userID, 7) get_user_authid(id, authID, 31) get_user_team(id, team, 15) } // create the trigger text new logTrigger[128] format(logTrigger, 127, "^"<%s><%s><%s><%s>^"", name, userID, authID, team) // log in the current AMXX log if (logFlags & LOG_AMXX) { log_amx("%s %s", logTrigger, logText) } // log into a unique file for this plugin if (logFlags & LOG_FILE) { new logFile[32] get_current_log(pluginAbbr, logFile, 31) log_to_file(logFile, "%s %s", logTrigger, logText) } // log as a chat message in the server log if (logFlags & LOG_CHAT) { new chatLogText[128] // make quotes in log text palatable to 3rd party chat log viewers new isFound = 1 format(chatLogText, 127, "%s", logText) while (isFound) isFound = replace(chatLogText, 127, "^"", "'") // if player triggered this log entry, add the player name to the log text if (id) format(chatLogText, 127, "%s %s", name, chatLogText) log_message("^"<><><>^" triggered ^"amx_chat^" (text ^"[%s] %s^")", pluginAbbr, chatLogText) } } stock get_current_log(pluginAbbr[], currentFile[], currentFileSize) { // get the current month number new currentMonth[3] get_time("%m", currentMonth, 2) // right-justify the month and pad the left with a 0 if (equal(currentMonth[1], "/0")) format(currentMonth, 2, "0%s", currentMonth[0]) // ensure the plugin shortname is in lowercase new lowerPluginAbbr[16] copy(lowerPluginAbbr, 15, pluginAbbr) strtolower(lowerPluginAbbr) // set the current log file format(currentFile, currentFileSize, "%s%s.log", lowerPluginAbbr, currentMonth, 31) } stock cycle_log_files(pluginAbbr[], prevMonthsToKeep) { // delete old log file if (prevMonthsToKeep < 11) // always retain the current month { // get the current month number new currentMonthText[3] get_time("%m", currentMonthText, 2) new currentMonthNum = str_to_num(currentMonthText) new monthToDelete = constraint_offset(1, 12, currentMonthNum, (-prevMonthsToKeep - 1)) new logToDelete[128] get_localinfo("amxx_logdir", logToDelete, 127) if (monthToDelete < 10) format(logToDelete, 127, "%s/%s0%d.log", logToDelete, pluginAbbr, monthToDelete) else format(logToDelete, 127, "%s/%s%d.log", logToDelete, pluginAbbr, monthToDelete) if (file_exists(logToDelete)) delete_file(logToDelete) } }
Załączone pliki
#6
Napisano 04.02.2009 19:07
zrob to co wyzej napisalem. skopiuj ten kod ktory umiesciles w [code=auto:0], i zapisz do pliku logging.inc. potem wrzuc do include.
#7
Napisano 04.02.2009 19:09
Jak wyżej. Do zamknięcia
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych