I tried increasing it before posting this thread and it didn't solve anything. I replaced the MAX_GROUPS with sizeofs, which resulted the same errors. As about those two lines, I was wondering what's wrong with them. I thought I used console_print.
Thank you, Black Rose! Maybe I messed it up, so here's the code:
PHP Code:
#include < amxmodx >
#include < amxmisc >
#pragma semicolon 1
//#define MAX_GROUPS 18
new sNames[][] =
{
"Founder + |VIP|",
"Founder",
"Owner + |VIP|",
"Owner",
"Co-Owner + |VIP|",
"Co-Owner",
"God + |VIP|",
"God",
"Super-Moderator + |VIP|",
"Super-Moderator",
"Moderator + |VIP|",
"Moderator",
"Administrator + |VIP|",
"Administrator",
"Helper + |VIP|",
"Helper",
"|VIP|",
"Slot"
};
new sFlags[][] =
{
"abcdefghijklmnopqrstuv", // Founder + VIP
"abcdefghijklmnopqrsuv", // Founder
"abcdefghijkmnopqrstu", // Owner + VIP
"abcdefghijkmnopqrsu", // Owner
"abcdefijmnopqrstu", // Co-Owner + VIP
"abcdefijmnopqrsu", // Co-Owner
"abcdefijmnopqrst", // God + VIP
"abcdefijmnopqrs", // God
"abcdefijmnopqrt", // Super-Moderator + VIP
"abcdefijmnopqr", // Super-Moderator
"abcdefijmnopqt", // Moderator + VIP
"abcdefijmnopq", // Moderator
"abcdefijmnot", // Administrator + VIP
"abcdefijmno", // Administrator
"abceijmnot", // Helper + VIP
"abceijmno", // Helper
"abt", // VIP
"ab" // Slot
};
new sFlagsValue[sizeof(sNames)];
public plugin_init()
{
register_plugin("admin_who", "1.0", "rock!");
register_concmd("admin_who", "cmdWho", 0);
register_clcmd("say who", "cmdSayWho", 0);
register_clcmd("say admin", "cmdSayWho", 0);
register_clcmd("say /who", "cmdSayWho", 0);
register_clcmd("say /admin", "cmdSayWho", 0);
for(new i = 0; i < sizeof(sNames); i++)
sFlagsValue[i] = read_flags(sFlags[i]);
}
public cmdWho(id)
{
new iPlayers[32];
new iNum;
new iClient;
new sName[32];
get_players(iPlayers, iNum);
console_print(id, "----- www..ro -----");
for(new i = 0; i < sizeof(sNames); i++)
{
console_print(id, "~~~~[%d]%s~~~~", (i + 1), sNames[i]);
for(new a = 0; a < iNum; ++a)
{
iClient = iPlayers[a];
get_user_name(iClient, sName, charsmax(sName));
if(get_user_flags(iClient) == sFlagsValue[i])
console_print(id, "%s", sName);
}
}
console_print(id, "----- www..ro -----");
return PLUGIN_HANDLED;
}
public cmdSayWho(id)
{
client_print(id, print_chat, "* Verifica-ti consola!");
cmdWho(id);
}
__________________