25.12.2008, 16:01
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 Код:
pawn Код:
Merry X-Mas and good luck! |
pawn Код:
for(new i = 0; i <= GetMaxPlayers(); i++)
and also it's irrelevant with the problem.
even if you use this :
pawn Код:
for(new i = 0, j = GetMaxPlayers(); i < j; i++)
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
(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.");