~Shediboii írta:
Vedd ki a wav ot a lejatszasbol.
Kivettem de most dupla hibát ír nem is engedi lekonvertálni se a plugint
Konvertálási hiba:
korelejiuzenethang.sma(1) : error 010: invalid function or declaration
korelejiuzenethang.sma(22) : error 029: invalid expression, assumed zero
korelejiuzenethang.sma(22) : error 008: must be a constant expression; assumed zero
korelejiuzenethang.sma(44) : error 029: invalid expression, assumed zero
korelejiuzenethang.sma(44 -- 45) : error 088: number of arguments does not match definition
5 Errors.
Could not locate output file korelejiuzenethang.amx (compile failed).
Kód:
===========================================================================================*/
#include <amxmodx>
#include <amxmisc>
new const PLUGIN[] = "AMX Round Count"
new const VERSION[] = "0.0.1"
new const AUTHOR[] = "Duna"
new g_roundCount
public plugin_init(){
register_plugin(PLUGIN,VERSION,AUTHOR)
register_event("RoundTime", "roundcount", "bc")
register_event("TextMsg","reset_counter","a","2&#Game_C","2&#Game_w")
return PLUGIN_CONTINUE
}
new prepare_sounds[][] =
{
"keszuljfel/felkeszules",
};
public roundcount()
if ( read_data(1) == floatround(get_cvar_float("mp_roundtime") * 60.0) ) {
++g_roundCount
new r = random(256)
new g = random(256)
new b = random(256)
set_hudmessage(r,g,b, -1.0, 0.30, 0, 6.0, 6.0, 1.0, 0.15, 1)
show_hudmessage(0,"^nKészülj fel a Csatára!^n%d. Forduló!", g_roundCount)
client_cmd(0,"spk %s",prepare_sounds[random(sizeof prepare_sounds)]);
}
public reset_counter(){
g_roundCount = 0
}
public plugin_precache(){
precache_sound ("keszuljfel/felkeszules",)
return PLUGIN_CONTINUE
}