Array index out of bounds
#6

Here:
Код:
CMD:injuries(playerid, params[])
{
	new targetid;
	
	if (sscanf(params, "u", targetid))
		return SendUsageMessage(playerid, "/injuries [playerid/name]");
	
	if (targetid == INVALID_PLAYER_ID)
		return SendErrorMessage(playerid, "You have specified an invalid player.");
	
	if (!IsPlayerNearPlayer(playerid, targetid, 10.0))
		return SendErrorMessage(playerid, "You are not close enough to the specified player.");
		
	ShowInjuries(playerid, targetid);
	return 1;
}
Reply


Messages In This Thread
Array index out of bounds - by GoldenLion - 11.10.2016, 14:17
Re: Array index out of bounds - by SyS - 11.10.2016, 14:31
Re: Array index out of bounds - by GoldenLion - 11.10.2016, 14:38
Re: Array index out of bounds - by oMa37 - 11.10.2016, 14:44
Re: Array index out of bounds - by SyS - 11.10.2016, 14:50
Re: Array index out of bounds - by GoldenLion - 11.10.2016, 14:54
Re: Array index out of bounds - by SyS - 11.10.2016, 14:56
Re: Array index out of bounds - by GoldenLion - 11.10.2016, 15:22
Re: Array index out of bounds - by SyS - 11.10.2016, 15:36

Forum Jump:


Users browsing this thread: 1 Guest(s)