SA-MP Forums Archive
When i do /admins ((IG)) it dont pop up the information - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: When i do /admins ((IG)) it dont pop up the information (/showthread.php?tid=505710)



When i do /admins ((IG)) it dont pop up the information - JackieJ - 09.04.2014

When i do /admins in game i wont pop up like (Admins Online: ****) nothing shows.
How can i fix that problem?


Re: When i do /admins ((IG)) it dont pop up the information - awsomedude - 09.04.2014

Please post your code so people can help you.


Re: When i do /admins ((IG)) it dont pop up the information - Gus_Stone - 09.04.2014

Go to your gamemode and press CTRL + F then search for /admins or cmd_admins or whatever your command processor is, then post the command code here and we will help you


Re: When i do /admins ((IG)) it dont pop up the information - Mattakil - 09.04.2014

Do you have a /admins command in your script?


Re: When i do /admins ((IG)) it dont pop up the information - Lidor124 - 10.04.2014

Did you mean that we will guess your code?


Re: When i do /admins ((IG)) it dont pop up the information - JackieJ - 10.04.2014

Код HTML:
CMD:admins(playerid, params[])
{
    new sendername[MAX_PLAYER_NAME],string[64 + MAX_PLAYER_NAME];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerAdmin(i))
            {
                GetPlayerName(i, sendername, sizeof(sendername));
                format(string, 128, "Online Admins: %s", sendername);
                SendClientMessage(i, COLOR_GREEN, string);
            }
        }
    }
    return 1;
}
here is the code so what should i edit?


Re: When i do /admins ((IG)) it dont pop up the information - Dubya - 10.04.2014

What is your code for 'IsPlayerAdmin(i)',
also on new sendername[MAX_PLAYER_NAME], string[64 + MAX_PLAYER_NAME] -- the string is only 88 bytes long. change the string to , string[128];


Re: When i do /admins ((IG)) it dont pop up the information - Bingo - 10.04.2014

Quote:
Originally Posted by JackieJ
Посмотреть сообщение
Код HTML:
CMD:admins(playerid, params[])
{
    new sendername[MAX_PLAYER_NAME],string[64 + MAX_PLAYER_NAME];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerAdmin(i))
            {
                GetPlayerName(i, sendername, sizeof(sendername));
                format(string, 128, "Online Admins: %s", sendername);
                SendClientMessage(i, COLOR_GREEN, string);
            }
        }
    }
    return 1;
}
here is the code so what should i edit?
What do you get? Nothing or it just ignores you like without sending a message that this cmd is incorrect etc.


Re: When i do /admins ((IG)) it dont pop up the information - Hanuman - 10.04.2014

IsPlayerAdmin will only give the name of Rcon admin. What variable do u use to make a player admin?


Re: When i do /admins ((IG)) it dont pop up the information - JackieJ - 10.04.2014

Guys please can you fix it up so it will works?.

i have only script in three day now, it's my first command ((??