I am sorry if I am souding stupid, but what are you trying to do?
Yell > clanchat?
|
Solved.
I am sorry if I am souding stupid, but what are you trying to do?
Yell > clanchat?
Yeah, whats that shit about Yellchannels and stuff? For Yell, you want to send c2.sendMessage, Plus, ranks images, whatever ect. then message not all of this extra business youve got here.
Wtf is the reason for asking what i do on my server and why? Just fix my problem please...
For clanchat, you need to know what clan chat to join, and if anyone is even in there. Also my clanchat on my server is fucked and i cba to fix the whole thing because no one even uses it. My way you can see how many people are inside the yell channel, and it is object oriented. Will also give donators the benefit of being able to listen in on more than one channel at a time. Meaning, they can yell globally and trade at the same time, you cant be in 2 clans at once
Picture:
Okay, first of all. With that attitude nobody is going to want to help you at all, so i'd suggest you just calm right down because nobody here is obligated to help you.
Next, The reason we are questioning what you want to do on server and why is because if you want to do something, and your trying to do it the long, wrong and hard way. Of course we would advise you to revise?
Now what exactly do you WANT.
I just explained it above, the message is multiplied by the amount of players online, so if i yell with 20 people online, it will spam their chat box with 20 of the same yell. Yet it is the same method as the other one, and the other one doesnt have that problem. And the wtf wasnt directed towards you that other kid was flaming me on another post i had, and yet again he comes back to ask me why i have what i have. We are in the help section not the criticize section.
Just going to type out some cody but no conventions (on my phone)
Code:for (int i = 0; i < PlayerHandler.players; i++) { if (PlayerHandler.players[i] != null) { Client c2 = (Client) PlayerHandler.players[i]; if (c2.chID == channelID) { //send message } } }
All fixed, just had to add a return after it sent the yellChannels method. Thanks for the help.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |