26.03.2011, 17:15
You need to reformat the string in the same format!
My version of yours;
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;
}