SendClientMessageToOthers
#1

can somebody tell me why is this not working ?

pawn Код:
forward SendClientMessageToOthers(playerid, color, msg[]);
public SendClientMessageToOthers(playerid, color, msg[])
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && i != playerid)
        {
            SendClientMessage(i,color,msg);
        }
    }
}
Reply
#2

Message is not being sent to the player that have called the function.
Reply
#3

why you no only use.

SendClientMessageToAll

?
Reply
#4

Quote:
Originally Posted by PT
Посмотреть сообщение
why you no only use.

SendClientMessageToAll

?
It's supposed to be that everyone except only one in the server should get the message.

Код:
for(new i=0; i<MAX_PLAYERS; i++)
into
Код:
for(new i=0; i <= MAX_PLAYERS; i++) //you want the last player to receive the message as well I hope. ^^
This will probably not solve your actual problem though, but worth mentioning. :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)