Korzystam z generatora by Fili:P http://filip-apitest...l/vPHP/indx.php
Kod wygląda następująco:
#include <amxmodx>
#include <codmod>
new const nazwa[] = "Osama Bin Laden";
new const opis[] = "Dostaje AK-47, HE i szybko chodzi";
new const bronie = 1<<CSW_AK47 | CSW_HEGRENADE;
new const zdrowie = 30;
new const kondycja = 20;
new const inteligencja = 40;
new const wytrzymalosc = 10;
public plugin_init() {
register_plugin(nazwa, "1.0", "QTM_Peyote");
cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc);
}
public cod_class_enabled(id)
{
ma_klase[id] = true;
if(!(get_user_flags(id) & ADMIN_LEVEL_A))
{
client_print(id, print_chat, "[%s] Nie masz uprawnien, aby uzywac tej klasy.", nazwa)
return COD_STOP;
}
}
public cod_class_disabled(id)
{
ma_klase[id] = false;
}
Jednak wyrzuca mi błąd w tym miejscu:
ma_klase[id] = true;
Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team Error: Undefined symbol "ma_klase" on line 20 Warning: Expression has no effect on line 20 Error: Expected token: ";", but found "]" on line 20 Error: Invalid expression, assumed zero on line 20 Error: Too many error messages on one line on line 20 Compilation aborted. 4 Errors. Could not locate output file C:\Documents and Settings\kjiadhja\Pulpit\kompilacje\Untitled.amx (compile failed).
Co robię źle?


Dodatki SourceMod












