[Ajuda] ZCMD e Admin
#1

PHP код:
CMD:admins(playerid,params[])
{
    foreach(new 
i:Player)
    {
    if(
IsPlayerConnected(i) && PlayerInfo[i][data_Admin] > 0)
    {
    
format(Indexed,sizeof(Indexed),"%s\n"GL"%s[%d] "LA"Administrador Nivel: %d            ",Indexed,Nombre(i),i,PlayerInfo[i][data_Admin]);
    
ShowPlayerDialog(playerid1003DIALOG_STYLE_MSGBOX""AD"GTAE: Administradores OnLine",Indexed,"Aceptar","");
    }
    }
    return 
1;
}
mas ao fazк-lo passar:
Cesar_******[0admin level5
X
[1admin level2
Cesar_******
[0admin level5
porque e soluзгo

EDIT: arranjado
Reply
#2

pawn Код:
CMD:admins(playerid,params[])
{

    new Pou[500];
    new tmp[120];
    foreach(new i:Player)
    {
        if(IsPlayerConnected(i) && PlayerInfo[i][data_Admin] > 0)
        {
            format(tmp,sizeof(tmp),""GL" %s[%d] "LA"Administrador Nivel: %d            \n",Nombre(i),i,PlayerInfo[i][data_Admin]);
            strcat(Pou, tmp);
        }
    }
   
    ShowPlayerDialog(playerid, 1003, DIALOG_STYLE_MSGBOX, ""AD"GTAE: Administradores OnLine", Pou,"Aceptar","");
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)