Hey,
Ich möchte das Freundesystem von "8D" in einem Dialog anzeigen lassen,
leider weiß ich nicht genau wie.
Ich habe bisher so angefangen:
stock ShowFriendListForPlayer(playerid)
{
new str[MAX_PLAYER_FRIENDS][MAX_PLAYER_NAME],string[128];
for(new f = 0; f < MAX_PLAYER_FRIENDS; f++)
{
if(strcmp(Freunde[playerid][f],"0",true) != 0)
{
if(GetIdByName(Freunde[playerid][f]) != -1)
{
format(str[f],MAX_PLAYER_NAME,"{0x33AA33AA}%s",Freunde[playerid][f]);
}
else
{
format(str[f],MAX_PLAYER_NAME,"{0xFF444499}%s",Freunde[playerid][f]);
}
}
format(string,sizeof(string),"%s\n%s",str[f]);
ShowPlayerDialog(playerid,DIALOG_FRIENDLIST,DIALOG_STYLE_MSGBOX,"Friendlist",string,"Ok","");
}
}
lg