need help with IRC
#10

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
I've formatted it twice because the first string get visible on the echo channel (so you can see what user said),and the second,obviously,it sends the message to the players.
You can simply reformat the same string if you're gonna make them different (so no need for two strings), but other than that you can send the same string to whatever you want.

For example:
pawn Код:
new string[128];
format(string, 128, "String 1");
SendClientMessageToAll(RED, string); //Will send "String 1" to everybody
print(string); //Prints "String 1"
format(string, 128, "String 2");
SendClientMessageToAll(RED, string); //Will send "String 2" to everybody
print(string); //Prints "String 2"
Reply


Messages In This Thread
[No subject] - by DeathTone - 10.05.2012, 14:56
Re: need help with IRC - by DeathTone - 10.05.2012, 19:27
Re: need help with IRC - by denNorske - 10.05.2012, 22:11
Re: need help with IRC - by Vince - 10.05.2012, 22:54
Re: need help with IRC - by DeathTone - 10.05.2012, 23:54
Re: need help with IRC - by DeathTone - 11.05.2012, 22:11
Re: need help with IRC - by Face9000 - 11.05.2012, 23:26
Re: need help with IRC - by DeathTone - 12.05.2012, 00:02
Re: need help with IRC - by Face9000 - 12.05.2012, 09:12
Re: need help with IRC - by DeathTone - 12.05.2012, 17:31

Forum Jump:


Users browsing this thread: 2 Guest(s)