05.03.2019, 09:58
Quote:
It is not a dialog so you don't need to format, nor strcat, and in SendClientMessage, you cannot skip lines, even while using format. You should output each line separately, to achieve that put the SendClientMessage inside the loop, it will output every single call in a line.
|
Btw I used SendClientMessage inside the loop, no result
PHP код:
CMD:emscalls(playerid,params[]){
if(PlayerInfo[playerid][pFaction]!=FACTION_FMD)return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
SendClientMessage(playerid, COLOR_WHITE, "________________| Available EMS Calls |_________________");
new m[512];
for(new i=0;i<MAX_PLAYERS;i++){
if(EMSCall[i][ems_called]){
format(m, sizeof(m), "%i. %s - %s || Accepted by %s\n", i,PlayerICName(i), GetPlayerZone(i),PlayerICName(EMSCall[i][ems_acceptedby]));
SendClientMessage(playerid, 0xE4A3E2FF, m);
}
}
return 1;
}