Proszę o wyjaśnienie mi na jakiej zasadzie działa ten plugin, bo niby prosty, ale mam problemy.
#include <amxmodx>
#define PLUGIN "Huddni"
#define VERSION "1.0"
#define AUTHOR "intelcom"
new const g_sDayName[][] =
{
"Poniedzialek",
"Wtorek",
"Sroda",
"Czwartek",
"Piatek",
"Sobota",
"Niedziela"
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_logevent( "RoundStart", 2, "1=Round_Start" );
}
public RoundStart()
{
static i_day;
if(i_day > 6)
i_day = 0;
set_hudmessage(0, 255, 0, -1.0, 0.25, 0, 1.5, 3.0, 1.0, 1.0, 4);
show_hudmessage(0, "Dzisiaj jest: %s", g_sDayName[i_day]);
i_day++;
return 1;
}
Za pomoc oczywiście plusy.Głownie chodzi mi tutaj o:
1)
new const g_sDayName[][]
2)
public RoundStart()
3) Do static'a (zmienna statyczna), nie przypisujemy żadnej wartości liczbowej, a mimo to stawiamy warunek:
if(i_day > 6)


Dodatki SourceMod














