Help with string size.
#9

Code:
for(new i = 0; i != p; i++)
	{
	    if(IsPlayerAttacker(playerScores[i][player_ID]))
	    {
	        format(AttList, sizeof(AttList), "%s~r~~h~%s~n~", AttList, GetPlayerNameEx(playerScores[i][player_ID]));
		format(AttKills, sizeof(AttKills), "%s~w~~h~~h~%d~n~", AttKills, PlayerInfo[playerScores[i][player_ID]][pRoundKills]);
	        format(AttScore, sizeof(AttScore), "%s~w~~h~~h~%d~n~", AttScore, PlayerInfo[playerScores[i][player_ID]][pRoundPoints]);
	        format(AttDamage, sizeof(AttDamage), "%s~w~~h~~h~%d~n~", AttDamage, playerScores[i][player_Score]);
		}
		else if(IsPlayerDefender(playerScores[i][player_ID]))
		{
	        format(DefList, sizeof(DefList), "%s~b~~h~%s~n~", DefList, GetPlayerNameEx(playerScores[i][player_ID]));
		format(DefKills, sizeof(DefKills), "%s~w~~h~~h~%d~n~", DefKills, PlayerInfo[playerScores[i][player_ID]][pRoundKills]);
	        format(DefScore, sizeof(DefScore), "%s~w~~h~~h~%d~n~", DefScore, PlayerInfo[playerScores[i][player_ID]][pRoundPoints]);
	        format(DefDamage, sizeof(DefDamage), "%s~w~~h~~h~%d~n~", DefDamage,  playerScores[i][player_Score]);
		}
	}
Those are the only essential ones that I'm asking about how do you transform those 8 different strings into one and loop it once.
Reply


Messages In This Thread
Help with string size. - by m1kas - 09.03.2018, 16:37
Re: Help with string size. - by jasperschellekens - 09.03.2018, 16:47
Re: Help with string size. - by m1kas - 09.03.2018, 16:53
Re: Help with string size. - by Meller - 09.03.2018, 17:15
Re: Help with string size. - by m1kas - 09.03.2018, 17:25
Re: Help with string size. - by Meller - 09.03.2018, 17:31
Re: Help with string size. - by m1kas - 09.03.2018, 17:40
Re: Help with string size. - by Meller - 09.03.2018, 17:41
Re: Help with string size. - by m1kas - 09.03.2018, 17:44
Re: Help with string size. - by NaS - 10.03.2018, 01:10

Forum Jump:


Users browsing this thread: 1 Guest(s)