Quote:
Originally Posted by Shadoww5
PHP код:
if(!strcmp(cmdtext, "/testing", true))
{
new name[MAX_PLAYER_NAME], lol[256];
for(new i = 0; i <MAX_PLAYERS; i++)
{
if(!IsPlayerNPC(i)) continue;
GetPlayerName(i,name,MAX_PLAYER_NAME);
strcat(lol,"{FFFFFF}%s {64B500}%s,",i,name);
}
ShowPlayerDialog(playerid,100,DIALOG_STYLE_MSGBOX,"{64B500}Online:",lol,"OK","Exit");
return 1;
}
|
you cant do strcat(lol,"{FFFFFF}%s {64B500}%s,",i,name);
so either way, mine would be the working one and the fastest.. cus if u do format then strcat = slower..