PHP Code:
public MessageEveryone(message)
{
The compiler assumes that
message is a single integer.
https://wiki.alliedmods.net/Pawn
PHP Code:
public MessageEveryone(message[])
{
Also, depending on what
doMagic() is doing, you may want to also pass the length of the character array.
PHP Code:
public MessageEveryone(message[], len)
{
for (new i = 0; i < g_MaxPlayers; i++) {
if (!is_user_connected(i)) {
continue;
}
doMagic(i, message, len, GREEN, 5.0);
}
}
EDIT: also yeah loop through players how fysiks suggested. Your method would be correct in Sourcemod, but I guess it's a different story in AMX Mod X.
__________________