Skocz do zawartości

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.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

Problem z adminhelp


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
4 odpowiedzi w tym temacie

#1 bolekx34

    Profesjonalista

  • Użytkownik

Reputacja: 1
Nowy

  • Postów:161
  • GG:
  • Imię:HLDK
Offline

Napisano 13.01.2019 19:59

To mi errory wywala w logs :

 

L 01/13/2019 - 19:46:12: [AMXX] Displaying debug trace (plugin "adminhelp.amxx", version "1.8.1.3746")
L 01/13/2019 - 19:46:12: [AMXX] Run time error 25: parameter error 
L 01/13/2019 - 19:46:12: [AMXX]    [0] adminhelp.sma::dispInfo (line 89)
L 01/13/2019 - 19:46:14: String formatted incorrectly - parameter 6 (total 5)
 
 
Jakiś pomysł na zlikwidowanie problemu? 

  • +
  • -
  • 0

#2 Rivit

    Godlike

  • Support Team

Reputacja: 1 319
Godlike

  • Postów:4 381
Offline

Napisano 13.01.2019 22:22

Coś namieszane w formatowaniu stringa. Za mało parametrow podane.

 

Wrzuć kod


  • +
  • -
  • 0

#3 bolekx34

    Profesjonalista

  • Autor tematu
  • Użytkownik

Reputacja: 1
Nowy

  • Postów:161
  • GG:
  • Imię:HLDK
Offline

Napisano 13.01.2019 23:30

/* AMX Mod X
*   Admin Help Plugin
*
* by the AMX Mod X Development Team
*  originally developed by tcquest78
*
* This file is part of AMX Mod X.
*
*
*  This program is free software; you can redistribute it and/or modify it
*  under the terms of the GNU General Public License as published by the
*  Free Software Foundation; either version 2 of the License, or (at
*  your option) any later version.
*
*  This program is distributed in the hope that it will be useful, but
*  WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
*  General Public License for more details.
*
*  You should have received a copy of the GNU General Public License
*  along with this program; if not, write to the Free Software Foundation, 
*  Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*  In addition, as a special exception, the author gives permission to
*  link the code of this program with the Half-Life Game Engine ("HL
*  Engine") and Modified Game Libraries ("MODs") developed by Valve, 
*  L.L.C ("Valve"). You must obey the GNU General Public License in all
*  respects for all of the code used other than the HL Engine and MODs
*  from Valve. If you modify this file, you may extend this exception
*  to your version of the file, but you are not obligated to do so. If
*  you do not wish to do so, delete this exception statement from your
*  version.
*/
 
#include <amxmodx>
 
#define DISPLAY_MSG // Comment to disable message on join
 
public plugin_init()
{
register_plugin("Admin Help", AMXX_VERSION_STR, "AMXX Dev Team")
register_dictionary("adminhelp.txt")
register_concmd("amx_help", "cmdHelp", 0, "<page> [nr of cmds (only for server)] - displays this help")
}
 
#if defined DISPLAY_MSG
public client_putinserver(id)
{
if (is_user_bot(id))
return
 
set_task(15.0, "dispInfo", id)
}
 
public client_disconnect(id)
{
remove_task(id)
}
#endif
 
public cmdHelp(id, level, cid)
{
new flags = get_user_flags(id)
 
// HACK: ADMIN_ADMIN is never set as a user's actual flags, so those types of commands never show
if (flags > 0 && !(flags & ADMIN_USER))
{
flags |= ADMIN_ADMIN;
}
 
new clcmdsnum = get_concmdsnum(flags, id)
 
console_print(id, "^n----- %L -----", id, "HELP_COMS")
 
new info[128], cmd[32], eflags
 
for (new i = 0; i < clcmdsnum; i++)
{
get_concmd(i, cmd, 31, eflags, info, 127, flags, id)
console_print(id, "%3d: %s %s", i + 1, cmd, info)
}
 
return PLUGIN_HANDLED
}
 
#if defined DISPLAY_MSG
public dispInfo(id)
{
client_print(id, print_chat, "%L", id, "TYPE_HELP")
 
new nextmap[32]
get_cvar_string("amx_nextmap", nextmap, 31)
 
if (get_cvar_float("mp_timelimit"))
{
new timeleft = get_timeleft()
 
if (timeleft > 0)
{
client_print(id, print_chat, "%L", id, "TIME_INFO_1", timeleft / 60, timeleft % 60, nextmap)
} else {
client_print(id, print_chat, "%L", id, "TIME_INFO_2", nextmap)
}
}
}
#endif

  • +
  • -
  • 0

#4 Rivit

    Godlike

  • Support Team

Reputacja: 1 319
Godlike

  • Postów:4 381
Offline

Napisano 14.01.2019 12:30

Wrzuć jako plik. Tak to nie widać numerów linii

Wrzuć jeszcze plik adminhelp.txt

Użytkownik TibacK edytował ten post 14.01.2019 12:31

  • +
  • -
  • 0

#5 bolekx34

    Profesjonalista

  • Autor tematu
  • Użytkownik

Reputacja: 1
Nowy

  • Postów:161
  • GG:
  • Imię:HLDK
Offline

Napisano 15.01.2019 00:20

Trzymaj 

Załączone pliki


  • +
  • -
  • 0




Użytkownicy przeglądający ten temat: 1

0 użytkowników, 1 gości, 0 anonimowych