01.01.2017, 15:32
well i optimized it a bit, but i am pretty sure those errors arent from this cmd:
PHP код:
IRCCMD:admins(botid, channel[], user[], host[], params[])
{
new IsOnline = 0;
new wordss[128];
foreach(Player, i)
{
if (pData[i][Admin] >= 3)
{
format(wordss, sizeof(wordss), "9,2 Admin %s (ID: %d) [Level %d]\n",GetName(i), i, pData[i][Admin]);
IsOnline++;
IRC_GroupSay(groupID, IRC_CHANNEL, wordss);
}
}
if (IsOnline == 0)
IRC_GroupSay(groupID, IRC_CHANNEL, "No admins are online!");
else
{
format(wordss, sizeof(wordss), "11,2 %d RightX Admin Online",IsOnline);
IRC_GroupSay(groupID, IRC_CHANNEL, wordss);
new msg99[128];
format(msg99, sizeof(msg99), "*Online Admins Player List Requested by %s ~ Total %d", user, IsOnline);
SendClientMessageToAll(0xFFB400FF, msg99);
format(msg99, sizeof(msg99), "0,10 *Online Admins List Requested by %s ~ Total %d",user,IsOnline);
IRC_GroupSay(groupID, IRC_CHANNEL, msg99);
}
return 1;
}