Local Chat
#8

Quote:
Originally Posted by [SAP
Ycto ]
Hai!

I really don't know if this will work, but, you can try it :P
Replace this:
pawn Код:
for(new i = 0; i < GetMaxPlayers(); i++)
With this:
pawn Код:
for(new i = 0; i <= GetMaxPlayers(); i++)
I don't know if it will work, just guessing =)
Merry X-Mas and good luck!
pawn Код:
for(new i = 0; i <= GetMaxPlayers(); i++)
obviously it doesn't work.
and also it's irrelevant with the problem.

even if you use this :
pawn Код:
for(new i = 0, j = GetMaxPlayers(); i < j; i++)
it's slower than:
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
but if you limit max players lower than 200 in this case you should use the first method.
(i think so cause it will call useless IPC function)

you could try this.
but you should confirm before using this that GetDistanceBetweenPlayers is checking IPC(IsPlayerConnected).
pawn Код:
LimitGlobalChatRadius(125);
new i;
for(new i = 0, j = GetMaxPlayers(); i < j; i++)
{
    if( GetDistanceBetweenPlayers(playerid, i) <= 125 ) break;
}
if( i == MAX_PLAYERS ) SendClientMessage(playerid,COLOUR_WHITE , "( ! ) (INFO) Nobody around you recieved the message.");
if it works enjoy it
Reply


Messages In This Thread
Local Chat - by Soeren - 24.12.2008, 13:56
Re: Local Chat - by Soeren - 25.12.2008, 11:19
Re: Local Chat - by LarzI - 25.12.2008, 11:50
Re: Local Chat - by x-cutter - 25.12.2008, 13:04
Re: Local Chat - by Soeren - 25.12.2008, 13:16
Re: Local Chat - by Ycto - 25.12.2008, 14:18
Re: Local Chat - by Soeren - 25.12.2008, 15:38
Re: Local Chat - by dax123 - 25.12.2008, 16:01
Re: Local Chat - by Soeren - 25.12.2008, 17:18
Re: Local Chat - by Serbish - 25.12.2008, 17:22

Forum Jump:


Users browsing this thread: 1 Guest(s)