Input Line Too Long
#5

Basically, you are putting a "\n" instead of a "\t" for every 4th JoinedPlayer line. So this part:
pawn Код:
!((i + 1) % 4)
Checks if "i + 1" is divisible by 4. We exclude '23', because we don't want to add a "\n" to the last JoinedPlayer line.

This line:
pawn Код:
format(JoinedPlayerStr, sizeof(JoinedPlayerStr), (!((i + 1) % 4) && i != 23) ? ("{%s}%s\n") : ("{%s}%s\t"), colorstring, GetName(JoinedPlayer[i]));
is the same as doing this:
pawn Код:
if(!((i + 1) % 4) && i != 23) format(JoinedPlayerStr, sizeof(JoinedPlayerStr), "{%s}%s\n", colorstring, GetName(JoinedPlayer[i]));
else format(JoinedPlayerStr, sizeof(JoinedPlayerStr), "{%s}%s\t", colorstring, GetName(JoinedPlayer[i]));
Reply


Messages In This Thread
Input Line Too Long - by Aerotactics - 05.10.2015, 11:01
Re: Input Line Too Long - by Gammix - 05.10.2015, 12:26
Re: Input Line Too Long - by Threshold - 05.10.2015, 12:31
Re: Input Line Too Long - by Aerotactics - 05.10.2015, 17:56
Re: Input Line Too Long - by Threshold - 06.10.2015, 03:34
Re: Input Line Too Long - by Pottus - 06.10.2015, 04:35

Forum Jump:


Users browsing this thread: 1 Guest(s)