Having more IsPlayerInRangeOfPoint
#2

Well, I forgot about that. I just can't get it to work tho I don't know what I'm doing wrong here:

PHP код:
IsPlayerNearMercenary(const playerid)
{
    for(new 
i<MAX_MERCENARIESi++)
    {
        if(!
strcmp(IsPlayerInRangeOfPoint(playerid1.5, -2817.39331, -1516.39526140.74620) || !strcmp(IsPlayerInRangeOfPoint(playerid1.5, -2386.691412216.228525.07300))
            return 
i;
    }
    return -
1;

Utils/Mercenary.pwn(190) : error 035: argument type mismatch (argument 1)
Utils/Mercenary.pwn(191) : error 035: argument type mismatch (argument 1)

Line 190:

PHP код:
        if(!strcmp(IsPlayerInRangeOfPoint(playerid1.5, -2817.39331, -1516.39526140.74620) || !strcmp(IsPlayerInRangeOfPoint(playerid1.5, -2386.691412216.228525.07300)) 
Line 191:

PHP код:
return i

EDIT: fixed it


+rep
Reply


Messages In This Thread
Having more IsPlayerInRangeOfPoint - by DarkMythHunter - 14.01.2019, 00:55
Re: Having more IsPlayerInRangeOfPoint - by DarkMythHunter - 14.01.2019, 05:02
Re: Having more IsPlayerInRangeOfPoint - by d3Pedro - 14.01.2019, 05:40
Re: Having more IsPlayerInRangeOfPoint - by DarkMythHunter - 15.01.2019, 04:04

Forum Jump:


Users browsing this thread: 1 Guest(s)