Why wont this work?
#2

You need to reformat the string in the same format!

pawn Код:
format(string,sizeof(string),"%s"lgreen"%s \n",string, GetPName(i));

My version of yours;

pawn Код:
if ( !strcmp( cmdtext, "/admins" ))
{
    new
        Str[512],
        Str2[30]
        oadmins = 0;
    for ( new i = 0; i < MAX_PLAYERS; i++ )
    {
        if ( pinfo2[ i ][ pAdminLevel ] > 0 )
        {
            format( Str, sizeof ( Str ), "%s"lgreen"%s\n",Str, GetPName( i ) );
            oadmins++;
        }
    }
    format( Str2, sizeof( Str2 ), "Online admins: %i", oadmins );
    ShowPlayerDialog( playerid, 2351, 0, Str2, Str, "Close", "" );
    return 1;
}
Reply


Messages In This Thread
Why wont this work? - by [MWR]Blood - 26.03.2011, 17:11
Re: Why wont this work? - by Zh3r0 - 26.03.2011, 17:15

Forum Jump:


Users browsing this thread: 1 Guest(s)