Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team qq.sma(22) : warning 217: loose indentation qq.sma(22) : error 017: undefined symbol "RegisterHam" qq.sma(22) : warning 215: expression has no effect qq.sma(22) : warning 215: expression has no effect qq.sma(22) : warning 215: expression has no effect qq.sma(22) : error 001: expected token: ";", but found ")" qq.sma(22) : error 029: invalid expression, assumed zero qq.sma(22) : fatal error 107: too many error messages on one line Compilation aborted. 4 Errors.
klasa:
#include <amxmodx>
#include <amxmisc>
#include <codmod>
#define ZADANIE_WSKRZES 6240
new bool:ma_klase[33];
new const nazwa[] = "Polak";
new const opis[] = "Dostajesz Ak, 125 hp bazowe, 110 % biegu, 1/4 na zrespienie sie";
new const bronie = (1<<CSW_AK47);
new const zdrowie = 25;
new const kondycja = 10;
new const inteligencja = 5;
new const wytrzymalosc = 10;
public plugin_init()
{
register_plugin(nazwa, "1.0", "amxx.pl");
cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc);
RegisterHam(Ham_Killed, "player", "Killed", 1);
}
public cod_class_enabled(id)
{
wartosc_klasy[id] = wartosc;
ma_klase[id] = true;
}
public cod_class_disabled(id)
ma_klase[id] = false;
public Killed(id)
{
if(ma_klase[id] && random_num(1, 4) == 1)
set_task(0.1, "Wskrzes", id+ZADANIE_WSKRZES);
}
public Wskrzes(id)
ExecuteHamB(Ham_CS_RoundRespawn, id-ZADANIE_WSKRZES);
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1045\\ f0\\ fs16 \n\\ par }
*/
Użytkownik tiki edytował ten post 12.07.2012 14:05


Dodatki SourceMod











