/playerlist Only one players shows up ;/
#8

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(iplNamesizeof(plName));
                
format(playersonlinesizeof(playersonline), "{FFFFFF}%i {64B500}%s\n"Ricop522plName);
                
strcat(playersonline2,playersonline);
            }
        }
        
ShowPlayerDialog(playerid,100,DIALOG_STYLE_LIST,"Players On",playersonline2,"Exit","");
        return 
0x01;
    } 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)