Chciałem Zrobic Na Mój Serwer Klasy Za Monety . Skorzystałem z Tego http://amxx.pl/topic...as-i-perki-vip/
i Jak chciałem Skompilować to wyszło to w Kompilacji.
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2006 ITB CompuPhase, AMX Mod X Team
aaaa.sma(37) : error 021: symbol already defined: "give_item"
aaaa.sma(40) : error 054: unmatched closing brace
2 Errors.
Could not locate output file aaaa.amxx (compile failed).
a to SMA Klasy.
#include <amxmodx>
#include <amxmisc>
#include <codmod>
#include <fun>
new const nazwa[] = "Szatan";
new const opis[] = "Jest Szybki.";
new const bronie = (1<<CSW_XM1014)|(1<<CSW_FLASHBANG);
new const zdrowie = 0;
new const kondycja = 55;
new const inteligencja = -15;
new const wytrzymalosc = 0;
native cod_get_user_coins(id);
native cod_set_user_coins(id, wartosc);
#define KOSZT 50 //Ile ma kosztowac klasa ? (Domyslnie: 50 monet)
public plugin_init()
{
register_plugin(nazwa, "1.0", "amxx.pl");
cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc);
}
public cod_class_enabled(id)
{
if(cod_get_user_coins(id) < KOSZT)
{
client_print(id, print_chat, "Klasa kosztuje %d monet ! Nie masz na nia kasy...", KOSZT);
return COD_STOP;
}
//zawartosc cod_class_enabled
cod_set_user_coins(id, cod_get_user_coins(id)-KOSZT);
return COD_CONTINUE;
}
give_item(id, "weapon_flashbang");
give_item(id, "weapon_flashbang");
}
I Jeszcze Jak zrobić
wpisuje Sie /sklep
Potem Jest Sklep Za Monety
I tam Bedzie NP : Szatan ( Koszt 50 Monet )
Daje Plusiki
Użytkownik 19Acer96 edytował ten post 02.02.2013 17:50