13.08.2013, 21:33
No it has to come after the contents of "szString". I was able to get it working with this:
Although it's not really what I wanted. I don't know, perhaps the period ( . ) had something to do with it..?
pawn Code:
foreach(new iTarget : Player)
{
if(IsPlayerInFactionID(iTarget, pStats[playerid][iPlayerFaction][0]))
{
strcat(szMainString, "~w~,");
format(szString, sizeof(szString), " ~y~%s %s", pStats[iTarget][pFirstName], pStats[iTarget][pLastName]);
strcat(szMainString, szString);
}
}