Help in /admins (DIALOG)
#1

I have made an Dialog /admins system it has a bug it only shows one admin why not others??
Help me guys fix this code:
pawn Код:
dcmd_admins(playerid,params[])
{
#pragma unused params
new count = 0;
new string[128];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(IsPlayerDAdminByDeadly[i][Level] >= 1 && IsPlayerDAdminByDeadly[i][Hide] == 0)
{
if(IsPlayerDAdminByDeadly[i][Level] > 5) {
AdmRank = "RCON Admin";
}
if(IsPlayerAdmin(i)) AdmRank = "RCON Admin";
else
switch(IsPlayerDAdminByDeadly[i][Level])
{
case 1: AdmRank = "Donator";
case 2: AdmRank = "Basic Moderator";
case 3: AdmRank = "Moderator";
case 4: AdmRank = "Administrator";
case 5: AdmRank = "Head Administrator";
}
format(string,128,"\n%s (ID:%i) | Level: %d - %s\nType /report if you suspect someone hacks/racism.",PlayerName2(i),i,IsPlayerDAdminByDeadly[i][Level], AdmRank);
ShowPlayerDialog(playerid, ADMINLIST, DIALOG_STYLE_MSGBOX, "Online Admins and Vips:", string, "OK", "CANCEL");
count++;
}
}
}
if (count == 0)
SendClientMessage(playerid,red,"SERVER: There are no admins and vips online");
return 1;
}
Reply
#2

Hehehehehe!
edit in luxadmin? :P

lol
Reply
#3

Quote:
Originally Posted by hab2ever
Hehehehehe!
edit in luxadmin? :P

lol
Whats your problem
Any help guys?
Reply
#4

Hey hey, calm down mate...
Reply
#5

Um maybe there i only 1 admin ?
Ps! I think it doenst show the server oener.
Reply
#6

Quote:
Originally Posted by Tranceworm
Um maybe there i only 1 admin ?
Ps! I think it doenst show the server oener.
No, It shows only the admin who's playerid is first...
I have 6 Admins Online it only shows one admin D:
Reply
#7

I have same problem, too..
Reply
#8

Bump!!!
Reply
#9

again bumping
i think it can be done by Foreach.inc Any help guys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)