Array index out of bounds
#7

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Like this??:

Код:
if (IsKeyJustDown(KEY_FIRE, newkeys, oldkeys))
	{
		if( PlayerInfo[playerid][pC4Used] == 1 )
		{
            if (0 <= GoChase[playerid] < sizeof (PlayerInfo))
			{
				if(IsPlayerInRangeOfPoint(GoChase[playerid], 12.0, GetPVarFloat(playerid, "DYN_C4_FLOAT_X"), GetPVarFloat(playerid, "DYN_C4_FLOAT_Y"), GetPVarFloat(playerid, "DYN_C4_FLOAT_Z")))
				{
     				if(PlayerInfo[GoChase[playerid]][pHeadValue] >= 1)
					{
						if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
						{
							new string[128];
							new takemoney = PlayerInfo[GoChase[playerid]][pHeadValue] / 4 * 2;
							GivePlayerCash(playerid, takemoney);
							GivePlayerCash(GoChase[playerid], -takemoney);
							format(string,sizeof(string),"Hitman %s has fulfilled the contract on %s and collected $%d",GetPlayerNameEx(playerid),GetPlayerNameEx(GoChase[playerid]),PlayerInfo[GoChase[playerid]][pHeadValue] / 4 * 2);
							SendFamilyMessage(8, COLOR_YELLOW, string);
							format(string,sizeof(string),"You have been critically injured by a Hitman and lost $%d!",takemoney);
							ResetPlayerWeaponsEx(GoChase[playerid]);
							// SpawnPlayer(GoChase[playerid]);
							SendClientMessageEx(GoChase[playerid], COLOR_YELLOW, string);
							PlayerInfo[GoChase[playerid]][pHeadValue] = 0;
							PlayerInfo[playerid][pCHits] += 1;
							SetPlayerHealth(GoChase[playerid], 0.0);
							// KillEMSQueue(GoChase[playerid]);
							GotHit[GoChase[playerid]] = 0;
							GetChased[GoChase[playerid]] = 999;
							GoChase[playerid] = 999;
						}
					}
				}
			}
Reply


Messages In This Thread
Array index out of bounds - by ChristianIvann09 - 11.04.2014, 09:59
Re: Array index out of bounds - by Lidor124 - 11.04.2014, 10:09
Re: Array index out of bounds - by ChristianIvann09 - 11.04.2014, 10:11
Re: Array index out of bounds - by Sithis - 11.04.2014, 10:38
Re: Array index out of bounds - by Konstantinos - 11.04.2014, 10:42
Re: Array index out of bounds - by ChristianIvann09 - 11.04.2014, 13:32
Re: Array index out of bounds - by ChristianIvann09 - 11.04.2014, 14:35
Re: Array index out of bounds - by Konstantinos - 11.04.2014, 14:40
Re: Array index out of bounds - by ChristianIvann09 - 11.04.2014, 14:44
Re: Array index out of bounds - by Konstantinos - 11.04.2014, 14:54

Forum Jump:


Users browsing this thread: 1 Guest(s)