16.01.2015, 01:01
Код:
error 035: argument type mismatch (argument 2)
pawn Код:
NearByMessage(playerid, COLOR_WHITE, string, 12);
pawn Код:
}
stock NearByMessage(playerid, color, string[], Float:Range = 10.0)
{
new Float:pPos[3];
GetPlayerPos(playerid, pPos[0], pPos[1], pPos[2]);
foreach(Player, i)
{
if(IsPlayerInRangeOfPoint(i, Range, pPos[0], pPos[1], pPos[2]) && GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
{
SendClientMessage(i, color, string);
}
}
return 1;
}