Need some help with three options +rep
#3

Quote:
Originally Posted by Scottylad
Посмотреть сообщение
Код:
CMD:admins(playerid, params[]) 
{ 
    new count = 0; 

    SendClientMessage(playerid, COLOR_YELLOW, "Online Administrators:"); 

    foreach (new i : Player) if (PlayerData[i][pAdmin] > 0 && PlayerData[i][pAdminHide] < 1) 
    { 
        if (PlayerData[i][pAdminDuty]) 
            SendClientMessageEx(playerid, COLOR_NICEBLUE, "* %s (Level: %d) - (Status)", ReturnName(i, 0), PlayerData[i][pAdmin]); 

        else 
            SendClientMessageEx(playerid, COLOR_NICEBLUE, "* %s (Level: %d) - (Status)", ReturnName(i, 0), PlayerData[i][pAdmin]); 

        count++; 
    } 
    if (!count) { 
        SendClientMessage(playerid, COLOR_WHITE, "There is no admins currently online"); 
    } 
    return 1; 
}
You've not made it optional, you've stated this for each player, you need a 'switch' variable which allows the player to chose which one he wants.

I'll overlook this code later on today and I will make you a new one which will be better and functional.
Thanks mate, I really apprcieate your help.
Reply


Messages In This Thread
Need some help with three options +rep - by DemME - 27.10.2015, 22:12
Re: Need some help with three options +rep - by Scottylad - 27.10.2015, 23:37
Re: Need some help with three options +rep - by DemME - 27.10.2015, 23:45
Re: Need some help with three options +rep - by Kevln - 28.10.2015, 00:10
Re: Need some help with three options +rep - by DemME - 28.10.2015, 02:29
Re: Need some help with three options +rep - by Kevln - 28.10.2015, 03:01
Re: Need some help with three options +rep - by DemME - 28.10.2015, 03:19
Re: Need some help with three options +rep - by Kevln - 28.10.2015, 04:03

Forum Jump:


Users browsing this thread: 2 Guest(s)