SendClientMessage to everyone with value of 1
#7

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
Simple:

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(PlayerInfo[i][pAdmin]) return SendClientMessage(i, 0xC4C4C4FF, string);
}
Wrong! Obviously not simple as you state, should be:
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(PlayerInfo[i][pAdmin]) SendClientMessage(i, 0xC4C4C4FF, string);
}
Otherwise it would only send to the first admin it finds, based on the online player ID's which is considered random.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)