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 compilowaniem sma


  • Zamknięty Temat jest zamknięty
Brak odpowiedzi do tego tematu

#1 babej527

    Nowy

  • Użytkownik

Reputacja: -1
Nowy

  • Postów:7
  • Imię:Babej
  • Lokalizacja:Olsztyn
Offline

Napisano 08.12.2010 13:28

Nie wiem czy to dobry dział (jestem nowy) . Otóż mam problem z compilowaniem pliku sma .Te sma to głosowanie na hs only podczas compilowania wyskakują następujące błędy

Your plugin failed to compile! Read the errors below:

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/home/groups/amxmodx/compiler3/core(0) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(4) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(5) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(6) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(7) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(8) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(9) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(10) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(11) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(12) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(13) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(14) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(15) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(17) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(18) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(19) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(20) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(21) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(22) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(23) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(24) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(25) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(26) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(27) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(28) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(29) : error 075: input line too long (after substitutions)

Compilation aborted.
26 Errors






podaje sma:


#include <amxmodx> 
#include <amxmisc> 

#define PLUGIN    "Vote Only HS" 
#define AUTHOR    "elajt edit DAMIANq" 
#define VERSION    "1.0" 

new wyborow[3] 

public plugin_init()  
{ 
    register_plugin("PLUGIN", "VERSION", "AUTHOR") 
    set_task(20.0, "start_vote"); 
} 

public start_vote(id) 
{     
    new menu = menu_create("rChcesz grac only HS?", "menu_handler") 
    menu_additem(menu, "wTak", "1", 0) 
    menu_additem(menu, "wNie", "2", 0) 

    menu_addblank(menu, 0) 
    menu_setprop(menu, MPROP_EXIT, MEXIT_ALL) 
     
    new players[32], inum 
    get_players(players, inum, "ch") 
    for(new i = 0; i < inum; i++) 
    { 
        menu_display(players[i], menu, 0) 
    } 
     
    set_task(15.0, "finish_vote") 
     
    wyborow[1] = wyborow[2] 
     
    return 1 
} 

public menu_handler(id, menu, item) 
{ 
    if (item == MENU_EXIT) 
    { 
        menu_cancel(id) 
        return PLUGIN_HANDLED 
    } 
     
    new data[6], name[32] 
    new access, callback 
     
    menu_item_getinfo(menu, item, access, data, 5, _, _, callback) 
     
    new key = str_to_num(data) 
    get_user_name(id, name, 31) 
     
    switch (key)  
    { 
        case 1:  
        { 
            client_print (0, print_chat, "[AMXX] %s zaglosowal na tak.", name); 
        } 
        case 2: 
        { 
            client_print (0, print_chat, "[AMXX] %s zaglosowal na nie.", name); 
        } 
    } 
     
    ++wyborow[key] 
     
    menu_cancel(id) 
    return PLUGIN_HANDLED 
} 

public finish_vote() 
{ 
     
    if(wyborow[1] > wyborow[2]) 
    { 
        client_print(0, print_chat, "[AMXX] Only HS zostal wlaczony, zadecydowaly o tym glosy %d osob.", wyborow[1]) 
        server_cmd("amx_hs_mode 1"); 
    } 
     
    else if(wyborow[2] > wyborow[1]) 
    { 
        client_print(0, print_chat, "[AMXX] Only HS zostal wylaczony, zadecydowaly o tym glosy %d osob.", wyborow[2]) 
        server_cmd("amx_hs_mode 0"); 
    }

Może ktoś poprawić ; ] ?

Użytkownik Pavulon edytował ten post 08.12.2010 13:37
zacznij używać tagów BBCode i/lub załączników

  • +
  • -
  • 0




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

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