24.10.2013, 03:25
Hi, please help, I have a command that says all players who have contracts, but all are in a single line

as I do to make it look every player who has a contract on a different line

my code

as I do to make it look every player who has a contract on a different line

my code
Код:
CMD:hitlist(playerid, params[]) { #pragma unused params new count = 0; new string[1024]; new fstring[1024]; // new ARank[128]; for(new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { if(pInfo[i][Placehit] > 0) { format(fstring, sizeof(fstring), "%s(%i) - {FFFF00}%s |", pNameHit(i), i, Comma(pInfo[i][Placehit])); strcat(string, fstring); count++; } } } SendClientMessage(playerid, COLOR_YELLOW, "[__________ HIT LIST __________]"); SendClientMessage(playerid, COLOR_WHITE, string); return 1; }