/playerlist Only one players shows up ;/
#1

I was making a command to show players for a specific group and i wanted to test it on NPC's, but only one of 4 NPC's show up ;/

Код:
    if(!strcmp(cmdtext, "/testing", true))
	{
	new name[MAX_PLAYER_NAME];
	for(new i = 0; i <MAX_PLAYERS; i++){
	if(IsPlayerNPC(i)){
	new lol[256] = "* ";

	GetPlayerName(i,name,MAX_PLAYER_NAME);
	format(lol,256,"{FFFFFF}%s {64B500}%s,",lol,name);
	ShowPlayerDialog(playerid,100,DIALOG_STYLE_MSGBOX,"{64B500}Online:",lol,"OK","Exit");
	}
	}
	return 1;
	}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)