/playerlist Only one players shows up ;/
#6

Quote:
Originally Posted by Shadoww5
Посмотреть сообщение
PHP код:
if(!strcmp(cmdtext"/testing"true))
{
    new 
name[MAX_PLAYER_NAME], lol[256];
    for(new 
0<MAX_PLAYERSi++)
    {
        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..
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)