03.10.2017, 23:32
Hi.
I've made a command /factions, which looks like this.
It works as charm, but it doesen't show the Leaders, am i doing something wrong?
I've made a command /factions, which looks like this.
Код:
CMD:factions(playerid,params[])
{
if(IsPlayerConnected(playerid))
{
new string[185], stats[1024];
format(string,sizeof(string),"*Las Venturas Police Department[ID1] || Leader: %s \n*The Santino Family[ID2] || Leader: %s \n*The Manusco Crew[ID3] || Leader: %s \n*Back Alley Crips[ID4] Leader: %s",PlayerInfo[playerid][pFacleader] == 1 ,PlayerInfo[playerid][pFacleader] == 2 ,PlayerInfo[playerid][pFacleader] == 3 ,PlayerInfo[playerid][pFacleader] ==4);
format(stats, sizeof stats, "%s", string);
ShowPlayerDialog(playerid,FACTIONS,DIALOG_STYLE_MSGBOX,"Server Factions:",stats,"Ok","");
}
return 1;
}


