Quote:
Originally Posted by OciXCrom
1. You defined the function with 2 arguments, but you're using 4.
2. Why do you need an "id" parameter in the function if it's going to send the message to a group of players?
3. You're missing "vformat".
4. You probably don't need the "stock" tag.
|
like this?
PHP Code:
print_admin(const id, const input[], any:...)
{
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);
if(id)
players[0] = id;
else
get_players(players, count, "ch");
for (new i = 0; i < count; i++)
{
x = players[i]
if(is_user_admin(x))
client_print_color(x, 0, msg)
}
}
__________________