PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
new names[5000], g_maxplayers;
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say hello", "hello");
g_maxplayers = get_maxplayers();
}
public hello(id){
client_print(id, print_console, "%s", names);
}
public event_round_start(){
for(new i; i<g_maxplayers; i++){
if(is_user_connected(i)){
new name[32]; get_user_name(i, name, 31);
formatex(names, charsmax(names), "%s", name);
}
}
}
I want to show all the names saved on "names", but instead I only get the last name.
How can I do something like "names += name" with this?