02.04.2013, 14:00
When I compile I get this error : ProxDetector Thats happense because what ? I've added new faction to my server...
stock ProxDetector(playerid, color, string[], Float:range)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
foreach(Player, i)
{
if(IsPlayerInRangeOfPoint(i, range, x, y, z) && GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid) && GetPlayerInterior(i) == GetPlayerInterior(playerid)) {
SendClientMessage(i, color, string);
}
}
return 1;
}