Gun Store
#1

Well, i'm completely lost on this, i really don't see the warning here, and i've looked over it numerous times. But i AM known to miss the smallest things, so who knows, here's the warning

(32886) : warning 202: number of arguments does not match definition

the if(IsPlayerInRangeOfPoint, is the line that's giving off the warning


Код:
CMD:guns(playerid, params[])
{
	if(PlayerInfo[playerid][pGunLic] == 1)
	{
		if(IsPlayerInRangeOfPoint(playerid, 295.8104,-38.5144,1001.5156))
		{
		    ShowPlayerDialog(playerid, 311, DIALOG_STYLE_LIST,"{00BFFF}Amunation", "9mm  $650","Submit","Cancel");
		    return 1;
		}
		else
		{
		    SendClientMessage(playerid, COLOR_LIGHTRED,"    You do not have a Gun License!");
		    return 1;
		}
	}
	return 1;
}
Reply
#2

You forgot to include Float:range which is The furthest distance the player can be to be in range.
so it would be
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,1.0, 295.8104,-38.5144,1001.5156))//furthest distance being 1.0
Reply
#3

Quote:
Originally Posted by vvhy
Посмотреть сообщение
You forgot to include Float:range which is The furthest distance the player can be to be in range.
so it would be
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,1.0, 295.8104,-38.5144,1001.5156))//furthest distance being 1.0
Thanks, fixed the problem. For some reason i never tend to see the smallest errors xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)