Dialog
#1

it appears only One name!!!dosent appear all names only one row!one name!!


PHP код:
if (listitem == 0)
                                {
                                    new 
count 0;
                                    for(new 
i=0MAX_PLAYERSi++)
                                    {
                                        if(
IsPlayerConnected(i))
                                        {
                                            if(
PlayerInfo[i][pMember] == || PlayerInfo[i][pLeader] == 1)
                                            {
                                                new 
dia[1000];
                                                
GetPlayerName(igiveplayersizeof(giveplayer));
                                                
format(diasizeof(dia), " Name: %s | Rank %d | Ph: %d\n"giveplayer,PlayerInfo[i][pRank],PlayerInfo[i][pPtel]);
                                                
//SendClientMessage(playerid,COLOR_ORANGE,dia);
                                                
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"San Andreas Police Department",dia,"Close","");
                                                
count++;
                                            }
                                        }
                                    }
                                    if(
count == 0)
                                    {
                                        new 
ria[24];
                                        
strcat(ria," No Members Online!");
                                        
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"San Andreas Police Department",ria,"Close","");
                                    }
                                } 
Reply


Messages In This Thread
Dialog - by Ugaustin - 02.08.2015, 23:12
Re: Dialog - by Ugaustin - 02.08.2015, 23:54
Re: Dialog - by RowdyrideR - 03.08.2015, 00:18
Re: Dialog - by Variable™ - 03.08.2015, 00:26
AW: Dialog - by Nero_3D - 03.08.2015, 00:39

Forum Jump:


Users browsing this thread: 1 Guest(s)