I'm trying to get random consts to work
Code:
#include <amxmodx>
plugin_init()
{
register_plugin("Testing","Yeah","Blahblah")
}
// I set up my array
new const name[4][] =
{
"Name1",
"Name2",
"Name3",
"Name4"
}
public my_func(id)
{
client_print(id,print_chat,"Random name: %s",name[random(0,3)])
}
But i keep getting this compile error:
'Error: Number of arguments does not match definition on line 142'
Oh and as for a side note, there's alot of different ways to set up a menu, what would be the most 'optimized' way?