else if(dialogid == D_MEMBERS_1)
{
if(!response) return true;
if(response)
{
new atext[64];
new bbzb[1024];
new online;
for(new b = 21; b < 41; b++)
{
if(!strcmp(MMB[b][mmbName], "No-one", true))
{
format(atext, sizeof(atext), "{FFFFFF}[%d] No-one\n", b);
strcat(bbzb, atext);
}
else
{
format(atext, sizeof(atext), "{FFFFFF}[%d] %s | ", b, MMB[b][mmbName]);
strcat(bbzb, atext);
online = 0;
foreach(new i : Player)
{
if(IsPlayerConnected(i) && PlayerInfo[i][pMember] == b)
{
online = 1;
format(atext, sizeof(atext), "Online");
strcat(bbzb, atext);
}
}
if(online == 0)
{
format(atext, sizeof(atext), "Offline (%dhours)\n", MMB[b][mmbOff]);
strcat(bbzb, atext);
}
}
}
SPD(playerid, D_MEMBERS_2, DSM, "Members", bbzb, "Close", "Back");
}
}
cmd:members(playerid,params[])
{
new atext[64];
new zbzbz[1024];
new online;
for(new b = 1; b < 21; b++)
{
if(!strcmp(MMB[b][mmbName], "No-one", true))
{
format(atext, sizeof(atext), "{FFFFFF}[%d] No-one\n", b);
strcat(zbzbz, atext);
}
else
{
format(atext, sizeof(atext), "{FFFFFF}[%d] %s | ", b, MMB[b][mmbName]);
strcat(zbzbz, atext);
online = 0;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && PlayerInfo[i][pMember] == b)
{
online = 1;
format(atext, sizeof(atext), "Online");
strcat(zbzbz, atext);
}
}
if(online == 0)
{
format(atext, sizeof(atext), "Offline (%dhours)\n", MMB[b][mmbNeakt]);
strcat(zbzbz, atext);
}
}
}
SPD(playerid, D_MEMBERS_1, DSM, ""Members", zbzbz, "Next", "Close");
return true;
}
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
|
That's actually rather backward.
Just because it's easier, doesn't make it better. It's like saying you are able to work on a car, when all you can do is drive it, then when someone asks you to check the oil, you won't have a clue what to do. |
If you prefer using an old, slow and outdated method of creating factions go for it, if you want an easy, simple to use method with way more possibilities - learning MySQL is suggested. I don't know why people are learning to use databases using .dini, when there are far more better options, and you probably won't ever use .dini when you move on to different scripting branches, such as website designing and coding.
|