26.04.2014, 23:52
but I am not sure
I think the problem is here :
I made it
pawn Код:
CMD:onduty(playerid, params[])
{
SendClientMessage(playerid, COLOR_LIGHTSALMON, "____________Admins_On_Duty____________");
new totalonduty = 0;
for(new i = 0; i < MAX_PLAYERS+1; i++)
{
if(pInfo[i][Admin] > 1){
if(aduty[i] == 1)
{
totalonduty = totalonduty+1;
new aname[MAX_PLAYER_NAME];
new alevel = pInfo[i][Admin];
new line[128];
GetPlayerName(i, aname, MAX_PLAYER_NAME);
format(line, sizeof(line), "%s: Level %i Admin", aname, alevel);
SendClientMessage(playerid, COLOR_LIGHTSALMON, line);
}
}
}
}
if(totalonduty == 0){
SendClientMessage(playerid, COLOR_RED, "There are no admins on duty.");
}
SendClientMessage(playerid, COLOR_RED, "_________________________________________");
return 1;
}
pawn Код:
if(aduty[i] == 1)//= 1{
pawn Код:
if(aduty[i] == 1)
{
//here is the content
}