18.02.2012, 18:06
Can someone make me this command with strcmp
PHP код:
CMD:admins(playerid, params[])
{
new string[256];
new fstring[64];
for(new i=0; i<MAX_PLAYERS; i++)
{
if(level[i] > 0)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(i,pname, sizeof(pname));
format(fstring, sizeof(fstring),"%s (%i) - {FF0000}Level: %i{FFFFFF}\n", pname, i, level[i]);
strcat(string, fstring, sizeof(string));
}
}
ShowPlayerDialog(playerid,2563,DIALOG_STYLE_LIST,"Online Admins",string,"OK","");
return 1;
}