im trying to get this to work but it gives me errors in game someone to help me?
PHP Code:
#include <amxmodx>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "test"
#define MAX 3
new stat_hud
new randoms
new const messages[MAX][] =
{
"test",
"test 1",
"test 2"
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
testmessage()
stat_hud = CreateHudSyncObj(1)
}
public testmessage()
{
randoms = random_num(0, MAX)
set_task(10.0, "testmessage")
}
public client_PostThink(id)
{
if(!is_user_connected(id))
return
show_stat(id)
}
public show_stat(id)
{
set_hudmessage(0, 160, 0, 0.02, 0.14, 0, 2.0, 2.0)
ShowSyncHudMsg(id, stat_hud, "%s", messages[randoms])
}