[Ajuda] [ERRO] Ao Algemar de perto.
#1

Olб Pessoal da Board. Estou com um problema que nгo consigo resolver... Tenho em mente que seja ( col1, col2, col3, col4, col5). Mais nгo sei o que em caixa na linha. Poderiam me ajudar? Obrigado

Linha:
pawn Код:
if(ProxDetector(8.0, playerid, ID_OUTRO_JOGADOR)) return SendClientMessage(playerid, VERMELHO_BEM_CLARO , "Fique perto do suspeito para poder algemar ele.");
ERRO:
pawn Код:
error 035: argument type mismatch (argument 3)
Stock's
pawn Код:
ProxDetector(Float:radi, playerid, string[], col1, col2, col3, col4, col5)
{
    new Float:oldposx, Float:oldposy, Float:oldposz;
    GetPlayerPos(playerid, oldposx, oldposy, oldposz);
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid) && GetPlayerInterior(i) == GetPlayerInterior(playerid)) // This checks if the virtual world and interior are the same with the playerid
        {
            if(IsPlayerInRangeOfPoint(i, radi/16,oldposx, oldposy, oldposz)) SendClientMessage(i, col1, string);
            else if(IsPlayerInRangeOfPoint(i, radi/8,oldposx, oldposy, oldposz)) SendClientMessage(i, col2, string);
            else if(IsPlayerInRangeOfPoint(i, radi/4,oldposx, oldposy, oldposz)) SendClientMessage(i, col3, string);
            else if(IsPlayerInRangeOfPoint(i, radi/2,oldposx, oldposy, oldposz)) SendClientMessage(i, col4, string);
            else if(IsPlayerInRangeOfPoint(i, radi,oldposx, oldposy, oldposz)) SendClientMessage(i, col5, string);
        }
    }
    return true;
}
Reply


Messages In This Thread
[ERRO] Ao Algemar de perto. - by PetterAdriano - 24.09.2014, 03:57
Re: [ERRO] Ao Algemar de perto. - by davi54723 - 24.09.2014, 04:01
Re: [ERRO] Ao Algemar de perto. - by Dolby - 24.09.2014, 04:02
Re: [ERRO] Ao Algemar de perto. - by PetterAdriano - 24.09.2014, 04:11
Re: [ERRO] Ao Algemar de perto. - by Dolby - 24.09.2014, 04:17
Re: [ERRO] Ao Algemar de perto. - by PetterAdriano - 24.09.2014, 04:20
Re: [ERRO] Ao Algemar de perto. - by Dolby - 24.09.2014, 04:23
Re: [ERRO] Ao Algemar de perto. - by PetterAdriano - 24.09.2014, 04:38
Re: [ERRO] Ao Algemar de perto. - by PetterAdriano - 24.09.2014, 04:43
Re: [ERRO] Ao Algemar de perto. - by PetterAdriano - 24.09.2014, 20:03

Forum Jump:


Users browsing this thread: 1 Guest(s)