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

Malokasy2


  • Zamknięty Temat jest zamknięty
4 odpowiedzi w tym temacie

#1 Nuupek

    Zaawansowany

  • Użytkownik

Reputacja: 4
Nowy

  • Postów:111
  • Lokalizacja:Wielkopolska
Offline

Napisano 02.07.2009 14:30

Siemka :^D

Otóż próbuje przerobić plugin malokasy2 by emblaze.}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{ rtf1 ansi ansicpg1250 deff0 deflang1045{ fonttbl{ f0 fnil Tahoma;}}n viewkind4 uc1 pard f0 fs16 n par }
*/
Otóż chciałem zrobić żeby malokasy komenda działała TYLKO w kornsoli...

Ponieważ serw co chwila pisze w say malokasy ... A mam plugin /sell (Sprzedawanie broni) i biorą sobie sprzedają itd...

Nawet oryginał nie chce się skompikować...

Oto .sma

#include <amxmodx>
#include <amxmisc>
#include <fun>

#define PLUGIN "malokasy"
#define VERSION "1.0"
#define AUTHOR "emblaze"

public plugin_init()
{
register_clcmd("say malokasy","malokasy")
register_plugin(PLUGIN, VERSION, AUTHOR)

}

public malokasy(id)
{
new menu = menu_create("malokasy", "menu_handler")
menu_additem(menu, "Darmowe Deagle", "1", 0)
menu_additem(menu, "Darmowe Usp", "2", 0)
menu_additem(menu, "Darmowe Fiveseven", "3", 0)
menu_additem(menu, "Darmowe Dual Elite", "4", 0)
menu_additem(menu, "Darmowe P228", "5", 0)
menu_additem(menu, "Darmowe Glock18", "6", 0)
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
menu_display(id, menu, 0)
}

public menu_handler(id, menu, item)
{
if (item == MENU_EXIT)
{
return PLUGIN_HANDLED
}
new data[6], iName[64]
new access, callback
menu_item_getinfo(menu, item, access, data,5, iName, 63, callback)
new key = str_to_num(data)
switch(key)
{
case 1:{
strip_user_weapons (id)
give_item(id,"weapon_deagle")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"weapon_knife")
give_item(id,"weapon_hegrenade")
menu_destroy(menu)
return PLUGIN_HANDLED
}
case 2:{
strip_user_weapons (id)
give_item(id,"weapon_usp")
give_item(id,"ammo_45acp")
give_item(id,"ammo_45acp")
give_item(id,"ammo_45acp")
give_item(id,"ammo_45acp")
give_item(id,"ammo_45acp")
give_item(id,"ammo_45acp")
give_item(id,"ammo_45acp")
give_item(id,"weapon_knife")
give_item(id,"weapon_hegrenade")
menu_destroy(menu)
return PLUGIN_HANDLED
}
case 3:{
strip_user_weapons (id)
give_item(id,"weapon_fiveseven")
give_item(id,"ammo_57mm")
give_item(id,"ammo_57mm")
give_item(id,"ammo_57mm")
give_item(id,"ammo_57mm")
give_item(id,"ammo_57mm")
give_item(id,"ammo_57mm")
give_item(id,"ammo_57mm")
give_item(id,"weapon_knife")
give_item(id,"weapon_hegrenade")
menu_destroy(menu)
return PLUGIN_HANDLED
}
case 4:{
strip_user_weapons (id)
give_item(id,"weapon_elite")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
give_item(id,"weapon_knife")
give_item(id,"weapon_hegrenade")
menu_destroy(menu)
return PLUGIN_HANDLED
}
case 5:{
strip_user_weapons (id)
give_item(id,"weapon_p228")
give_item(id,"ammo_357sig")
give_item(id,"ammo_357sig")
give_item(id,"ammo_357sig")
give_item(id,"ammo_357sig")
give_item(id,"ammo_357sig")
give_item(id,"ammo_357sig")
give_item(id,"ammo_357sig")
give_item(id,"weapon_knife")
give_item(id,"weapon_hegrenade")
menu_destroy(menu)
return PLUGIN_HANDLED
}
case 6:{
strip_user_weapons (id)
give_item(id,"weapon_glock18")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
give_item(id,"weapon_knife")
give_item(id,"weapon_hegrenade")
menu_destroy(menu)
return PLUGIN_HANDLED
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{ rtf1 ansi ansicpg1250 deff0 deflang1045{ fonttbl{ f0 fnil Tahoma;}}n viewkind4 uc1 pard f0 fs16 n par }
*/



Wiem że ta linijka odpowiada za komende

register_clcmd("say malokasy","malokasy")
register_plugin(PLUGIN, VERSION, AUTHOR)


Oki zmienie ją ale skomplikować się nie da :/ Tak jak pisałem nawet jak nie zmienie to nie moge skomplikować...

Dziwi mnie ta linijka

}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{ rtf1 ansi ansicpg1250 deff0 deflang1045{ fonttbl{ f0 fnil Tahoma;}}n viewkind4 uc1 pard f0 fs16 n par }
*/


Jak ktoś pomoże będę wdzięczny ^D^

PS

Wcześniej mi błędu nie pokazywało po prostu pisało Przeczytaj poniższy błąd: (i nic nie było :/)

Teraz to się wyświetla



AMXX.pl :: Nieoficjalny polski support AMX Mod X Strona Główna
Nie udało się skompilować pluginu.
Przeczytaj poniższy bład:

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

/home/groups/amxmodx/tmp3/textmNKHK3.sma(11) : error 088: number of arguments does not match definition
/home/groups/amxmodx/tmp3/textmNKHK3.sma(43) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/textmNKHK3.sma(44) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/textmNKHK3.sma(58) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/textmNKHK3.sma(59) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/textmNKHK3.sma(73) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/textmNKHK3.sma(74) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/textmNKHK3.sma(88) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/textmNKHK3.sma(89) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/textmNKHK3.sma(103) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/textmNKHK3.sma(104) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/textmNKHK3.sma(118) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/textmNKHK3.sma(119) : warning 217: loose indentation

1 Error.
Could not locate output file /home/groups/amxmodx/public_html/websc3/textmNKHK3.amx (compile failed).


  • +
  • -
  • 0

#2 naven

    Hero

  • Power User

Reputacja: 204
Profesjonalista

  • Postów:1 088
  • GG:
  • Imię:Adam
  • Lokalizacja:Cieszyn
Offline

Napisano 02.07.2009 14:52

Po każdej funkcji zró tab i enterami wyrównuj, źle skopiowałeś, stąd ten błąd, zamiast
register_clcmd("say malokasy","malokasy")
daj
register_clcmd("malokasy","malokasy")

  • +
  • -
  • 0

#3 Nuupek

    Zaawansowany

  • Autor tematu
  • Użytkownik

Reputacja: 4
Nowy

  • Postów:111
  • Lokalizacja:Wielkopolska
Offline

Napisano 02.07.2009 17:05

Już tak robiłem... I nic :/


Edit

Po zrobieniu tak jak ty mówiłeś jest więcej Errorów

Nie udało się skompilować pluginu.
Przeczytaj poniższy bład:

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 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(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)
/home/groups/amxmodx/compiler3/core(30) : error 075: input line too long (after substitutions)

Compilation aborted.
26 Errors.
  • +
  • -
  • 0

#4 naven

    Hero

  • Power User

Reputacja: 204
Profesjonalista

  • Postów:1 088
  • GG:
  • Imię:Adam
  • Lokalizacja:Cieszyn
Offline

Napisano 02.07.2009 17:29

Źle musiałeś wpisać, pokaż jak to zrobiłeś
  • +
  • -
  • 0

#5 Nuupek

    Zaawansowany

  • Autor tematu
  • Użytkownik

Reputacja: 4
Nowy

  • Postów:111
  • Lokalizacja:Wielkopolska
Offline

Napisano 03.07.2009 08:34

Źle musiałeś wpisać, pokaż jak to zrobiłeś


Dobrze wpisałem ale musiał być znów jakiś błąd z web komplikatorem ;/

Bo wcześniej napisałem tak jak oryginał i nawet wtedy skomplikować nie mogłem ...

Teraz już idzie... Albo może sam błąd zrobiłem.
  • +
  • -
  • 0




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

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