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 rangipo edycji jest bład przy kompilacji

rangi

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

#1 arkadios

    Nowy

  • Nowy

Reputacja: 0
Nowy

  • Postów:4
  • Imię:Krystian
Offline

Napisano 01.04.2019 16:28

Gdy edytuje rangi .sma póżniej chcę je skompilować wywala taki błąd  wkleiłem oryginał i moje po edycji
 
BŁĄD********************************************************************************************************************************
 
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2013 ITB CompuPhase, AMX Mod X Team
 
ranga.sma(1) : error 010: invalid function or declaration
ranga.sma(60) : error 010: invalid function or declaration
 
2 Errors.
Could not locate output file ranga.amxx (compile failed).
 
ORYGINAŁ***********************************************************************************************************************************
 
/* Plugin generated by AMXX-Studio
 
By Sn!ff3r, requested by Myszax
 
*/
 
#include <amxmodx>
#include <amxmisc>
#include <csx>
 
#define PLUGIN "Rangi"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"
 
#define TASK 666
 
public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
}
 
public client_connect(id)
{
    if(is_user_bot(id))
        return
   
    new param[1]
    param[0] = id
   
    set_task(1.0,"rank",TASK+id,param,1,"b")
}
 
public client_disconnect(id)
    if(task_exists(TASK+id))
    remove_task(TASK+id)
 
public rank(param[])
{
    new id = param[0]
   
    static stats[8], body[8]
    get_user_stats(id, stats, body)
   
    new ranga[30]
   
    if ( stats[0] >= 0 && stats[0] <= 29)
        format(ranga,29,"Wiesniak")
    else if ( stats[0] >= 30 && stats[0] <= 59)
        format(ranga,29,"Lama")
    else if ( stats[0] >= 60 && stats[0] <= 119)
        format(ranga,29,"Sierota")
    else if ( stats[0] >= 120 && stats[0] <= 209)
        format(ranga,29,"Owieczka")
    else if ( stats[0] >= 210 && stats[0] <= 324)
        format(ranga,29,"Staruszka")
    else if ( stats[0] >= 325 && stats[0] <= 499)
        format(ranga,29,"Cherlak")
    else if ( stats[0] >= 500 && stats[0] <= 729)
        format(ranga,29,"Kozak")
    else if ( stats[0] >= 730 && stats[0] <= 999)
        format(ranga,29,"Macho")
    else if ( stats[0] >= 100 && stats[0] <= 1399)
        format(ranga,29,"Snajper")
    else if ( stats[0] >= 1400 && stats[0] <= 1849)
        format(ranga,29,"Rambo")
    else if ( stats[0] >= 1850 && stats[0] <= 2299)
        format(ranga,29,"Terminator")
    else if ( stats[0] >= 2300 && stats[0] <= 2899)
        format(ranga,29,"Wiesiek")
    else if ( stats[0] >= 2900 && stats[0] <= 3549)
        format(ranga,29,"Morfeusz")
    else if ( stats[0] >= 4200 && stats[0] <= 4999)
        format(ranga,29,"Wybraniec")
    else if ( stats[0] >= 5000 && stats[0] <= 5899)
        format(ranga,29,"Killer")
    else if ( stats[0] >= 5900 && stats[0] <= 6899)
        format(ranga,29,"Multi Killer")
    else if ( stats[0] >= 6900 && stats[0] <= 7999)
        format(ranga,29,"Owner")
    else if ( stats[0] >= 8000 && stats[0] <= 9299)
        format(ranga,29,"Cziter")
    else if ( stats[0] >= 9300 && stats[0] <= 1999)
        format(ranga,29,"Vip TeamKielce")
    else if ( stats[0] >= 1000 )
        format(ranga,29,"GM TeamKielce")
   
    set_hudmessage(255, 255, 255, 0.15, 0.55)
    show_hudmessage(id, "Ranga: %s^nZabojstw: %d",ranga,stats[0])
}<div class="info">Zbliża się koniec abonamentu za serwer Counter Strike 1.6.</div>
 
MOJE PO EDYCJI**********************************************************************************************************************************
 
/* Plugin generated by AMXX-Studio
 
By Sn!ff3r, requested by Myszax
 
*/
 
#include <amxmodx>
#include <amxmisc>
#include <csx>
 
#define PLUGIN "Rangi"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"
 
#define TASK 666
 
public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
}
 
public client_connect(id)
{
    if(is_user_bot(id))
        return
   
    new param[1]
    param[0] = id
   
    set_task(1.0,"rank",TASK+id,param,1,"b")
}
 
public client_disconnect(id)
    if(task_exists(TASK+id))
    remove_task(TASK+id)
 
public rank(param[])
{
    new id = param[0]
   
    static stats[8], body[8]
    get_user_stats(id, stats, body)
   
    new ranga[30]
   
    if ( stats[0] >= 0 && stats[0] <= 29)
        format(ranga,29,"Szeregowy")
    else if ( stats[0] >= 30 && stats[0] <= 99)
        format(ranga,29,"Podoficer")
    else if ( stats[0] >= 100 && stats[0] <= 199)
        format(ranga,29,"Oficer młodszy")
    else if ( stats[0] >= 200 && stats[0] <= 299)
        format(ranga,29,"Oficer starszy")
    else if ( stats[0] >= 300 && stats[0] <= 499)
        format(ranga,29,"Generał")
    else if ( stats[0] >= 500 )
        format(ranga,29,"Marszałek")
   
    set_hudmessage(255, 255, 255, 0.15, 0.55)
    show_hudmessage(id, "Ranga: %s^nZabojstw: %d",ranga,stats[0])
}<div class="info">Zbliża się koniec abonamentu za serwer Counter Strike 1.6.</div>

  • +
  • -
  • 0

#2 google's

    Pomocny

  • Użytkownik

Reputacja: 29
Życzliwy

  • Postów:49
  • GG:
Offline

Napisano 01.04.2019 17:49

Nie da się tego kodu wstawić jak normalny, cywilizowany człowiek? :D 

 

Zastanawia mnie po co Ci skrawek HTML w Pawn'ie i do tego w pluginie hud/rangi :P

Wywal to co jest po ostatnim kończącym nawiasie klamrowym

<div class="info">Zbliża się koniec abonamentu za serwer Counter Strike 1.6.</div>

Cały ten kod ma wyglądać tak:

/* Plugin generated by AMXX-Studio
 
By Sn!ff3r, requested by Myszax
 
*/
 
#include <amxmodx>
#include <amxmisc>
#include <csx>
 
#define PLUGIN "Rangi"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"
 
#define TASK 666
 
public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
}
 
public client_connect(id)
{
    if(is_user_bot(id))
        return
   
    new param[1]
    param[0] = id
   
    set_task(1.0,"rank",TASK+id,param,1,"b")
}
 
public client_disconnect(id)
    if(task_exists(TASK+id))
    remove_task(TASK+id)
 
public rank(param[])
{
    new id = param[0]
   
    static stats[8], body[8]
    get_user_stats(id, stats, body)
   
    new ranga[30]
   
    if ( stats[0] >= 0 && stats[0] <= 29)
        format(ranga,29,"Szeregowy")
    else if ( stats[0] >= 30 && stats[0] <= 99)
        format(ranga,29,"Podoficer")
    else if ( stats[0] >= 100 && stats[0] <= 199)
        format(ranga,29,"Oficer młodszy")
    else if ( stats[0] >= 200 && stats[0] <= 299)
        format(ranga,29,"Oficer starszy")
    else if ( stats[0] >= 300 && stats[0] <= 499)
        format(ranga,29,"Generał")
    else if ( stats[0] >= 500 )
        format(ranga,29,"Marszałek")
   
    set_hudmessage(255, 255, 255, 0.15, 0.55)
    show_hudmessage(id, "Ranga: %s^nZabojstw: %d",ranga,stats[0])
}

Btw. Polecam kompilacje lokalną https://amxx.pl/topi...ilacja-lokalna/


  • +
  • -
  • 0

#3 arkadios

    Nowy

  • Autor tematu
  • Nowy

Reputacja: 0
Nowy

  • Postów:4
  • Imię:Krystian
Offline

Napisano 01.04.2019 18:56

Nie da się tego kodu wstawić jak normalny, cywilizowany człowiek? :D

 

Zastanawia mnie po co Ci skrawek HTML w Pawn'ie i do tego w pluginie hud/rangi :P

Wywal to co jest po ostatnim kończącym nawiasie klamrowym

<div class="info">Zbliża się koniec abonamentu za serwer Counter Strike 1.6.</div>

Cały ten kod ma wyglądać tak:

/* Plugin generated by AMXX-Studio
 
By Sn!ff3r, requested by Myszax
 
*/
 
#include <amxmodx>
#include <amxmisc>
#include <csx>
 
#define PLUGIN "Rangi"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"
 
#define TASK 666
 
public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
}
 
public client_connect(id)
{
    if(is_user_bot(id))
        return
   
    new param[1]
    param[0] = id
   
    set_task(1.0,"rank",TASK+id,param,1,"b")
}
 
public client_disconnect(id)
    if(task_exists(TASK+id))
    remove_task(TASK+id)
 
public rank(param[])
{
    new id = param[0]
   
    static stats[8], body[8]
    get_user_stats(id, stats, body)
   
    new ranga[30]
   
    if ( stats[0] >= 0 && stats[0] <= 29)
        format(ranga,29,"Szeregowy")
    else if ( stats[0] >= 30 && stats[0] <= 99)
        format(ranga,29,"Podoficer")
    else if ( stats[0] >= 100 && stats[0] <= 199)
        format(ranga,29,"Oficer młodszy")
    else if ( stats[0] >= 200 && stats[0] <= 299)
        format(ranga,29,"Oficer starszy")
    else if ( stats[0] >= 300 && stats[0] <= 499)
        format(ranga,29,"Generał")
    else if ( stats[0] >= 500 )
        format(ranga,29,"Marszałek")
   
    set_hudmessage(255, 255, 255, 0.15, 0.55)
    show_hudmessage(id, "Ranga: %s^nZabojstw: %d",ranga,stats[0])
}

Btw. Polecam kompilacje lokalną https://amxx.pl/topi...ilacja-lokalna/

Dalej błąd screen shot

Załączone miniatury

  • ScreenShot_20190401195504.png

Użytkownik arkadios edytował ten post 01.04.2019 18:57

  • +
  • -
  • 0

#4 google's

    Pomocny

  • Użytkownik

Reputacja: 29
Życzliwy

  • Postów:49
  • GG:
Offline

Napisano 01.04.2019 19:24

Musisz błędny kod kompilować

Skopiuj ten co wysłałem wyżej jeszcze raz i skompiluj, tylko nic nie zmieniaj :)

U mnie żadnych errorów
kompi.png


  • +
  • -
  • 0





Również z jednym lub większą ilością słów kluczowych: rangi

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

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