Help, Log crashdetect[+rep]
#2

Not tested but try this:

Код:
if(GetDistanceBetweenPlayers(issuerid, playerid) < 41)
	{
		ShotTimes[issuerid]++;
		if(playerid == LastShot[issuerid])
		{
			format(string, 256, "+~g~%.0f~w~ damage (~g~ %s~w~) (x ~g~ %d~w~)", amount, PlayerInfo[playerid][pNume], ShotTimes[issuerid]);
			LastShot[issuerid] = playerid;
		}
		else
		{
			ShotTimes[issuerid] = 1;
			format(string, 256, "+~g~%.0f~w~ damage (~g~%s~w~) (x ~g~%d~w~)", amount, PlayerInfo[playerid][pNume], ShotTimes[issuerid]);
		}
		if(PlayerInfo[issuerid][pDMGInformer] != 0)
		{
			TextDrawSetString(Damage1[issuerid], string);
			TextDrawShowForPlayer(issuerid, Damage1[issuerid]);
			ShotTime2[issuerid] = 5;
		}
	}
	else
	{
		ShotTimes[issuerid]++;
		format(string, 256, "+~g~%.0f~w~ damage (x ~g~%d~w~)", amount, ShotTimes[issuerid]);
		if(PlayerInfo[issuerid][pDMGInformer] != 1)
		{
			TextDrawSetString(Damage1[issuerid], string);
			TextDrawShowForPlayer(issuerid, Damage1[issuerid]);
			LastShot[issuerid] = playerid;
			ShotTime2[issuerid] = +5;
		}
	}
	if(issuerid == INVALID_PLAYER_ID)
	{
		if(PlayerInfo[playerid][pDMGInformer] != 0)
		{
			format(string, 256, "-~r~%.0f~w~ damage", amount);
			TextDrawSetString(Damage0[playerid], string);
			TextDrawShowForPlayer(playerid, Damage0[playerid]);
			ShotTime[playerid] = 5;
		}
	}
	else
	{
		if(PlayerInfo[playerid][pDMGInformer] != 0)
		{
			format(string, 256, "-~r~%.0f~w~ damage(~r~%s~w~) (x ~r~%d ~w~)", amount, PlayerInfo[issuerid][pNume],ShotTimes[issuerid]);
			TextDrawSetString(Damage0[playerid], string);
			TextDrawShowForPlayer(playerid, Damage0[playerid]);
			ShotTime[playerid] = 5;
		}
	}
	return 1;
}
Reply


Messages In This Thread
Help, Log crashdetect[+rep] - by SHFaCeBook - 17.06.2015, 17:25
Re: Help, Log crashdetect[+rep] - by McBan - 17.06.2015, 19:36

Forum Jump:


Users browsing this thread: 2 Guest(s)