Command not working perfectly
#4

Quote:
Originally Posted by TheToretto
Посмотреть сообщение
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.
I have to use format to format the text
Btw I used SendClientMessage inside the loop, no result

PHP код:
CMD:emscalls(playerid,params[]){
    if(
PlayerInfo[playerid][pFaction]!=FACTION_FMD)return SendClientMessage(playeridCOLOR_GREY"You are not authorized to use this command.");
    
SendClientMessage(playeridCOLOR_WHITE"________________| Available EMS Calls |_________________");
    new 
m[512];
    for(new 
i=0;i<MAX_PLAYERS;i++){
        if(
EMSCall[i][ems_called]){
            
format(msizeof(m), "%i. %s - %s || Accepted by %s\n"i,PlayerICName(i), GetPlayerZone(i),PlayerICName(EMSCall[i][ems_acceptedby]));
            
SendClientMessage(playerid0xE4A3E2FFm);
        }
    }
    return 
1;

Reply


Messages In This Thread
Command not working perfectly - by akib - 05.03.2019, 06:17
Re: Command not working perfectly - by akib - 05.03.2019, 06:56
Re: Command not working perfectly - by TheToretto - 05.03.2019, 08:02
Re: Command not working perfectly - by akib - 05.03.2019, 09:58
Re: Command not working perfectly - by TheToretto - 05.03.2019, 10:08
Re: Command not working perfectly - by akib - 05.03.2019, 10:18
Re: Command not working perfectly - by TheToretto - 05.03.2019, 10:48
Re: Command not working perfectly - by akib - 05.03.2019, 11:35
Re: Command not working perfectly - by TheToretto - 05.03.2019, 11:40

Forum Jump:


Users browsing this thread: 2 Guest(s)