else if(dialogid == Adm)
{
if(response) {
ShowPlayerDialog(playerid, Adm2, DIALOG_STYLE_MSGBOX, "Admins Online", "Admins Online", "Ok", "Sair");
}
}
else if(dialogid == Adm2)
{
if(response)
{
if(strlen(inputtext))
{
SendClientMessage(playerid, COLOR_ORANGE, "|Elite City administracгo presentes-|");
for(new i = 0; i <= HighestID; i++)
{
if(IsPlayerConnected(i))
{
if(Player[i][pAdmin] >= 1 && Player[i][pAdmin] < 9)
{
if(AdminAfk[i] == 1)
{
format(thestring, 128, "(%d) %s (%s) (AFK)",i ,Player[i][pName], AccountName(i));
SendClientMessage(playerid, COLOR_GREEN, thestring);
}
else if(AdminDuty[i] == 1)
{
format(thestring, 128, "(%d) %s (%s) (Em serviзo)",i ,Player[i][pName], AccountName(i));
SendClientMessage(playerid, COLOR_YELLOW, thestring);
}
else if(noevento[i] == true)
{
format(thestring, 128, "(%d) %s (%s) (Em evento)",i ,Player[i][pName], AccountName(i));
SendClientMessage(playerid, COLOR_GREEN, thestring);
}
else if(noteste[i] == true)
{
format(thestring, 128, "(%d) %s (%s) (Em teste)",i ,Player[i][pName], AccountName(i));
SendClientMessage(playerid, COLOR_GREEN, thestring);
}
else if(AdminDuty[i] == 0 && AdminAfk[i] == 0)
{
format(thestring, 128, "(%d) %s (%s)",i ,Player[i][pName], AccountName(i));
SendClientMessage(playerid, COLOR_WHITE, thestring);
}
}
}
}
}
}
}
error 017: undefined symbol "thestring"(18674) : error 017: undefined symbol "thestring" (1867 : error 017: undefined symbol "thestring" (18679) : error 017: undefined symbol "thestring" (18683) : error 017: undefined symbol "thestring" (18684) : error 017: undefined symbol "thestring" (1868 : error 017: undefined symbol "thestring" (18689) : error 017: undefined symbol "thestring" error 017: undefined symbol "thestring" (18694) : error 017: undefined symbol "thestring" |
else if(dialogid == Adm2)
{
if(response)
{
if(strlen(inputtext))
{
SendClientMessage(playerid, COLOR_ORANGE, "|Elite City administracгo presentes-|");
for(new i = 0; i <= HighestID; i++)
{
if(IsPlayerConnected(i))
{
if(Player[i][pAdmin] >= 1 && Player[i][pAdmin] < 9)
{
if(AdminAfk[i] == 1)
{
format(thestring, 128, "(%d) %s (%s) (AFK)",i ,Player[i][pName], AccountName(i));
SendClientMessage(playerid, COLOR_GREEN, thestring);
}
else if(AdminDuty[i] == 1)
{
format(thestring, 128, "(%d) %s (%s) (Em serviзo)",i ,Player[i][pName], AccountName(i));
SendClientMessage(playerid, COLOR_YELLOW, thestring);
}
else if(noevento[i] == true)
{
format(thestring, 128, "(%d) %s (%s) (Em evento)",i ,Player[i][pName], AccountName(i));
SendClientMessage(playerid, COLOR_GREEN, thestring);
}
else if(noteste[i] == true)
{
format(thestring, 128, "(%d) %s (%s) (Em teste)",i ,Player[i][pName], AccountName(i));
SendClientMessage(playerid, COLOR_GREEN, thestring);
}
else if(AdminDuty[i] == 0 && AdminAfk[i] == 0)
{
format(thestring, 128, "(%d) %s (%s)",i ,Player[i][pName], AccountName(i));
SendClientMessage(playerid, COLOR_WHITE, thestring);
}
}
}
}
}
}
}
else if(dialogid == Adm2)
{
new thestring[256];
if(response)
{
if(strlen(inputtext))
{
SendClientMessage(playerid, COLOR_ORANGE, "|Elite City administracгo presentes-|");
for(new i = 0; i <= HighestID; i++)
{
if(IsPlayerConnected(i))
{
if(Player[i][pAdmin] >= 1 && Player[i][pAdmin] < 9)
{
if(AdminAfk[i] == 1)
{
format(thestring, 128, "(%d) %s (%s) (AFK)",i ,Player[i][pName], AccountName(i));
SendClientMessage(playerid, COLOR_GREEN, thestring);
}
else if(AdminDuty[i] == 1)
{
format(thestring, 128, "(%d) %s (%s) (Em serviзo)",i ,Player[i][pName], AccountName(i));
SendClientMessage(playerid, COLOR_YELLOW, thestring);
}
else if(noevento[i] == true)
{
format(thestring, 128, "(%d) %s (%s) (Em evento)",i ,Player[i][pName], AccountName(i));
SendClientMessage(playerid, COLOR_GREEN, thestring);
}
else if(noteste[i] == true)
{
format(thestring, 128, "(%d) %s (%s) (Em teste)",i ,Player[i][pName], AccountName(i));
SendClientMessage(playerid, COLOR_GREEN, thestring);
}
else if(AdminDuty[i] == 0 && AdminAfk[i] == 0)
{
format(thestring, 128, "(%d) %s (%s)",i ,Player[i][pName], AccountName(i));
SendClientMessage(playerid, COLOR_WHITE, thestring);
}
}
}
}
}
}
}
new thestring[256];
Pow man , valeu
Mas, deu 1 warning. Meu gm nгo pode ter nehum warn .-. (18661) : warning 219: local variable "thestring" shadows a variable at a preceding pawn Код:
|
new thestring[256];
CMD:admins(playerid, params[])
{
#pragma unused params
SendClientMessage(playerid, COLOR_ORANGE, "|--- administracгo presentes-|");
for(new i = 0; i <= HighestID; i++)
{
if(IsPlayerConnected(i))
{
if(Player[i][pAdmin] >= 1 && Player[i][pAdmin] < 9)
{
new string[128], str[512];
if(AdminAfk[i] == 1)
{
format(string, 128, "(%d) %s (%s) (AFK)",i ,Player[i][pName], AccountName(i));
strcat(str, string);
}
else if(AdminDuty[i] == 1)
{
format(string, 128, "(%d) %s (%s) (Em serviзo)",i ,Player[i][pName], AccountName(i));
strcat(str, string);
}
else if(noevento[i] == true)
{
format(string, 128, "(%d) %s (%s) (Em evento)",i ,Player[i][pName], AccountName(i));
strcat(str, string);
}
else if(noteste[i] == true)
{
format(string, 128, "(%d) %s (%s) (Em teste)",i ,Player[i][pName], AccountName(i));
strcat(str, string);
}
else if(AdminDuty[i] == 0 && AdminAfk[i] == 0)
{
format(string, 128, "(%d) %s (%s)",i ,Player[i][pName], AccountName(i));
strcat(str, string);
}
}
}
}
return ShowPlayerDialog(playerid, 1542, DIALOG_STYLE_MSGBOX, "Admins", str, "Fechar", "");
}