Posts: 599
Threads: 48
Joined: May 2016
btw
Code:
PHP код:
CMD:ircusers(playerid, params[])
{
if(PlayerInfo[playerid][VIP] < 1) return SendClientMessage(playerid, -1, ""R"[VCL]: "GRI"Sorry, This Command can be used just by +Silver Donator's");
new str[200];
IRC_GetChannelUserList(botIDs[0], IRCChannel, str, sizeof(str));
SendClientMessage(playerid, -1, ""YE"Online IRC Users:");
SendClientMessage(playerid, -1, str);
return 1;
}
IRC Users:
17 User in channel :/
Output:
PHP код:
Online IRC Users:
None.
[0] Yassine: wat :/
any ideas ?
Posts: 599
Threads: 48
Joined: May 2016
Posts: 928
Threads: 13
Joined: Feb 2016
Reputation:
0
Loop through all the connected botIDs (IRC_IsUserConnected) and try it out, Never used IRC so i can't be 100% sure if it's gonna work or not, But it might work.
Posts: 599
Threads: 48
Joined: May 2016
Quote:
Originally Posted by oMa37
Loop through all the connected botIDs (IRC_IsUserConnected) and try it out, Never used IRC so i can't be 100% sure if it's gonna work or not, But it might work.
|
ty for reply
but not work :/
it's still give me None.
Posts: 928
Threads: 13
Joined: Feb 2016
Reputation:
0
Can you show me the code?
Posts: 599
Threads: 48
Joined: May 2016
first post
EDIT:
PHP код:
CMD:ircusers(playerid, params[])
{
if(PlayerInfo[playerid][VIP] < 1) return SendClientMessage(playerid, -1, ""R"[VCL]: "GRI"Sorry, This Command can be used just by +Silver Donator's");
new str[200];
IRC_GetChannelUserList(botIDs[0], IRCChannel, str, sizeof(str));
SendClientMessage(playerid, -1, ""YE"Online IRC Users:");
SendClientMessage(playerid, -1, str);
return 1;
}
Posts: 599
Threads: 48
Joined: May 2016
Quote:
Did you even read my first post ?
|
yes i do xD
And there just one bot :/ i don't think loop will work
Quote:
Originally Posted by Konstantinos
You have used it correctly but until you find out why this happens, I can only suggest a workaround. Have a global variable and:
- increase when a user joins the channel (IRC_OnUserJoinChannel).
- decrease when a user leaves the channel (IRC_OnUserLeaveChannel).
If a player is kicked then IRC_OnUserKickedFromChannel will be called and I'm not sure if IRC_OnUserLeaveChannel will be called too as I haven't used the plugin. If it won't, decrease in this callback as well.
|
how i can use this callback and store the users joined ? :/