14.01.2019, 05:02
Well, I forgot about that. I just can't get it to work tho I don't know what I'm doing wrong here:
Utils/Mercenary.pwn(190) : error 035: argument type mismatch (argument 1)
Utils/Mercenary.pwn(191) : error 035: argument type mismatch (argument 1)
Line 190:
Line 191:
EDIT: fixed it
+rep
PHP код:
IsPlayerNearMercenary(const playerid)
{
for(new i; i <MAX_MERCENARIES; i++)
{
if(!strcmp(IsPlayerInRangeOfPoint(playerid, 1.5, -2817.39331, -1516.39526, 140.74620) || !strcmp(IsPlayerInRangeOfPoint(playerid, 1.5, -2386.69141, 2216.22852, 5.07300))
return i;
}
return -1;
}
Utils/Mercenary.pwn(191) : error 035: argument type mismatch (argument 1)
Line 190:
PHP код:
if(!strcmp(IsPlayerInRangeOfPoint(playerid, 1.5, -2817.39331, -1516.39526, 140.74620) || !strcmp(IsPlayerInRangeOfPoint(playerid, 1.5, -2386.69141, 2216.22852, 5.07300))
PHP код:
return i;
EDIT: fixed it
+rep