Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Решено Проблема в компиляции

Статус
В этой теме нельзя размещать новые ответы.
Апр
50
7
Пользователь
Ребят,я уже не знаю как пофиксить это,
Вот ошибка (407) : warning 215: expression has no effect
вот сам код ProxDetector(25.0, playerid, string, COLOR_WHITE, COLOR_WHITE, COLOR_WHITE, COLOR_GREY, COLOR_GREY);
 
Апр
50
7
Пользователь
Прикрепите код функции ProxDetector.
stock ProxDetector_OK(Float:radius = 30.0, playerid, text[], col1 = 0xFFFFFFFF, col2 = 0xCCCCCCFF, col3 = 0x999999FF, col4 = 0x666666FF, col5 = 0x333333FF)
{
// SetPlayerChatBubble(playerid, text, col1, radius, 5 * 1000);
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
for(new i = GetMaxPlayers() - 1, Float:dist, virtualworld = GetPlayerVirtualWorld(playerid), interior = GetPlayerInterior(playerid); i != -1; i--)
{
if(!IsPlayerConnected(i) || IsPlayerNPC(i) || virtualworld != GetPlayerVirtualWorld(i) || interior != GetPlayerInterior(i)) continue;
dist = GetPlayerDistanceFromPoint(i, x, y, z);
if(dist < radius / 16) SendClientMessage(i, col1, text);
else if(dist < radius / 8) SendClientMessage(i, col2, text);
else if(dist < radius / 4) SendClientMessage(i, col3, text);
else if(dist < radius / 2) SendClientMessage(i, col4, text);
else if(dist < radius) SendClientMessage(i, col5, text);
}
return 1;
}
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху