[HELP]how to get /admins info
#6

Quote:
Originally Posted by ATGOggy
View Post
This will work:
PHP Code:
CMD:admins(playerid) {
    new 
string[256], tempstring[56], plName[MAX_PLAYER_NAME];
    foreach(
Playeri) {
        if(
PlayerInfo[i][pAdmin] != 0) {
            
GetPlayerName(iplNamesizeof plName);
            
format(tempstringsizeof tempstring"Admin: %s(%d), Rank:%d\n"plNameiPlayerInfo[i][pAdmin]);
            
strcat(stringtempstringsizeof(string));
        }
        
ShowPlayerDialog(playeridDIALOG_IDDIALOG_STYLE_MSGBOX"Admins Online"string"Okay, "");
    }
    return 1;    

You've just copied my code and added strcat. I've nothing wrong with that, but, I really don't see the point. Also, you haven't read ******' tutorial about using 256 sized strings, which is why I used a string size of 128 and added the MAX_PLAYER_NAME size which is 24.
Reply


Messages In This Thread
[HELP]how to get /admins info - by fuckingcruse - 16.03.2015, 16:40
Re: [HELP]how to get /admins info - by Luis- - 16.03.2015, 16:49
Re: [HELP]how to get /admins info - by CalvinC - 16.03.2015, 16:52
Re: [HELP]how to get /admins info - by Luis- - 16.03.2015, 16:53
Re: [HELP]how to get /admins info - by ATGOggy - 16.03.2015, 16:56
Re: [HELP]how to get /admins info - by Luis- - 16.03.2015, 16:58
Re: [HELP]how to get /admins info - by ATGOggy - 16.03.2015, 17:00
Respuesta: Re: [HELP]how to get /admins info - by JuanStone - 16.03.2015, 17:05
Re: [HELP]how to get /admins info - by Luis- - 16.03.2015, 17:05
Re: [HELP]how to get /admins info - by ATGOggy - 16.03.2015, 17:08
Re: [HELP]how to get /admins info - by fuckingcruse - 17.03.2015, 03:03
Re: [HELP]how to get /admins info - by ATGOggy - 17.03.2015, 08:06

Forum Jump:


Users browsing this thread: 1 Guest(s)