ShowPlayerDialog to someone
#1

Well since I'm working on an "activity" system I need some help, I have gangs and stuff defined as "PlayerInfo[playerid][pMember]" and... just look at the code it should do more talking than me


PHP код:
    else if(dialogid == D_MEMBERS_1)
    {
        if(!
response) return true;
        if(
response)
        {
            new 
atext[64];
            new 
bbzb[1024];
            new 
online;
            for(new 
2141b++)
            {
                if(!
strcmp(MMB[b][mmbName], "No-one"true))
                {
                    
format(atextsizeof(atext), "{FFFFFF}[%d] No-one\n"b);
                    
strcat(bbzbatext);
                }
                else
                {
                    
format(atextsizeof(atext), "{FFFFFF}[%d] %s | "bMMB[b][mmbName]);
                    
strcat(bbzbatext);
                    
online 0;
                    foreach(new 
Player)
                    {
                           if(
IsPlayerConnected(i) && PlayerInfo[i][pMember] == b)
                        {
                            
online 1;
                              
format(atextsizeof(atext), "Online");
                            
strcat(bbzbatext);
                        }
                    }
                    if(
online == 0)
                    {
                        
format(atextsizeof(atext), "Offline (%dhours)\n"MMB[b][mmbOff]);
                        
strcat(bbzbatext);
                    }
                }
            }
            
SPD(playeridD_MEMBERS_2DSM"Members"bbzb"Close""Back");
        }
    } 
So I want to load the players "pMember" and him his organisation members, my folder for that "scriptfiles/organisation/%d/member_%d [ first %s going from 1 to 17, the other one from 0 to 40 ( the member slo t ) ]" like I want, I mean i want to load the "playerid" organisation and show him his members

EDIT: The command for that
PHP код:
cmd:members(playerid,params[])
{
    new 
atext[64];
    new 
zbzbz[1024];
    new 
online;
    for(new 
121b++)
    {
        if(!
strcmp(MMB[b][mmbName], "No-one"true))
        {
            
format(atextsizeof(atext), "{FFFFFF}[%d] No-one\n"b);
            
strcat(zbzbzatext);
        }
        else
        {
            
format(atextsizeof(atext), "{FFFFFF}[%d] %s | "bMMB[b][mmbName]);
            
strcat(zbzbzatext);
            
online 0;
            for(new 
i=0i<MAX_PLAYERSi++)
            {
                   if(
IsPlayerConnected(i) && PlayerInfo[i][pMember] == b)
                {
                    
online 1;
                      
format(atextsizeof(atext), "Online");
                    
strcat(zbzbzatext);
                }
            }
            if(
online == 0)
            {
                
format(atextsizeof(atext), "Offline (%dhours)\n"MMB[b][mmbNeakt]);
                
strcat(zbzbzatext);
            }
        }
    }
    
SPD(playeridD_MEMBERS_1DSM""Members", zbzbz, "Next", "Close");
    return true;

Reply


Messages In This Thread
ShowPlayerDialog to someone - by IdonTmiss - 19.07.2018, 03:57
Re: ShowPlayerDialog to someone - by IdonTmiss - 19.07.2018, 06:57
Re: ShowPlayerDialog to someone - by GhostHacker9 - 19.07.2018, 08:36
Re: ShowPlayerDialog to someone - by IdonTmiss - 19.07.2018, 08:56
Re: ShowPlayerDialog to someone - by GhostHacker9 - 19.07.2018, 09:00
Re: ShowPlayerDialog to someone - by m1kas - 19.07.2018, 22:56
Re: ShowPlayerDialog to someone - by IdonTmiss - 20.07.2018, 00:17
Re: ShowPlayerDialog to someone - by Sew_Sumi - 20.07.2018, 00:29
Re: ShowPlayerDialog to someone - by m1kas - 20.07.2018, 00:56
Re: ShowPlayerDialog to someone - by Sew_Sumi - 20.07.2018, 05:29

Forum Jump:


Users browsing this thread: 3 Guest(s)