- Ошибка
-
//AMXXPC compile.exe
// by the AMX Mod X Dev Team
//// nademessages.sma
//
// C:\Users\╨єёырэ\Desktop\amxmodx-1.9.0-git5294-windows\addons\amxmodx\scripting\nademessages.sma(30) : warning 204: symbol is assigned a value that is never used: "iAttacker"
// Header size: 400 bytes
// Code size: 920 bytes
// Data size: 632 bytes
// Stack/heap size: 16384 bytes
// Total requirements: 18336 bytes
//
// 1 Warning.
// Done.
//
// Compilation Time: 0,17 sec
// ----------------------------------------
Press enter to exit ...
- Компилятор
- Локальный
- Amx Mod X
- 1.9.0
- Исходный код
-
#include <amxmodx>
#define PLUGIN "Nade Messages"
#define VERSION "1.0"
#define AUTHOR "v3x"
new const g_szSounds[][] =
{
"misc/debil.wav"
}
public plugin_init()
{
register_plugin(PLUGIN,VERSION,AUTHOR)
register_event("DeathMsg","event_DeathMsg","a")
}
public plugin_precache()
{
for(new i = 0; i < sizeof(g_szSounds); i++)
precache_sound(g_szSounds[i])
}
public event_DeathMsg()
{
new id = read_data(2)
new iWeapon
new iAttacker = get_user_attacker(id, iWeapon)
if(iWeapon == CSW_HEGRENADE)
{
new iRed = random_num(1,255)
new iGreen = random_num(1,255)
new iBlue = random_num(1,255)
set_hudmessage(iRed,iGreen,iBlue,0.10,0.18,0,3.0,6.0,0.1,0.2,4)
show_hudmessage(0, "%s", "Ну вот, достойная смерть для дебила.")
client_cmd(0,"spk misc/debil")
}
return PLUGIN_CONTINUE
}
warning 204: symbol is assigned a value that is never used: "iAttacker"
В этой теме было размещено решение! Перейти к решению.