Witam
Jakiś czas już nie pisałem i nie pamiętam wszystkich rzeczy, jednak próbując napisać jeden plugin nie moge go skompilować, czy ktoś mi powie gdzie robie błąd?
Oto ten plugin:
#include <amxmodx>
#include <engine>
#define PLUGIN "Info"
#define VERSION "1.0"
#define AUTHOR "Gierek"
new ent_string[][] = {
EV_SZ_classname,
EV_SZ_globalname,
EV_SZ_model,
EV_SZ_target,
EV_SZ_targetname,
EV_SZ_netname,
EV_SZ_message,
EV_SZ_noise,
EV_SZ_noise1,
EV_SZ_noise2,
EV_SZ_noise3,
EV_SZ_viewmodel,
EV_SZ_weaponmodel
}
new string_name[][][64] = {
classname,
globalname,
model,
target,
targetname,
netname,
message,
noise,
noise1,
noise2,
noise3,
viewmodel,
weaponmodel
}
new string string_info[][] = {
"EV_SZ_classname",
"EV_SZ_globalname",
"EV_SZ_model",
"EV_SZ_target",
"EV_SZ_targetname",
"EV_SZ_netname",
"EV_SZ_message",
"EV_SZ_noise",
"EV_SZ_noise1",
"EV_SZ_noise2",
"EV_SZ_noise3",
"EV_SZ_viewmodel",
"EV_SZ_weaponmodel"
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_clcmd("amx_info", "info", ADMIN_CFG);
}
public info(id)
{
if(!is_user_connected(id))
return;
new ent, body
get_user_aiming (id, ent, body)
if(!is_valid_ent(ent))
return;
for(new i=0; i<13; i++)
entity_get_string ( ent, ent_string[i], string_name[i], sizeof(string_name[i]))
for(new j; j<13; j++)
client_print(id, print_console, "[%d] %s : %s", j, string_info[j], string_name[j])
}


Dodatki SourceMod




Moja zawartość
Mężczyzna