06.07.2011, 19:55
Test this..
PHP код:
if(strcmp(cmd, "/testing", true) == 0) //by Ricop522
{
new playersonline[500], playersonline2[504];
new plName[MAX_PLAYER_NAME], Ricop522 = 0;
for( ; Ricop522 < MAX_PLAYERS; ++Ricop522)
{
if(IsPlayerConnected(i)) {
GetPlayerName(i, plName, sizeof(plName));
format(playersonline, sizeof(playersonline), "{FFFFFF}%i {64B500}%s\n", Ricop522, plName);
strcat(playersonline2,playersonline);
}
}
ShowPlayerDialog(playerid,100,DIALOG_STYLE_LIST,"Players On",playersonline2,"Exit","");
return 0x01;
}