[Ajuda] Problema com o DIALOG_STYLE_MSGBOX
#1

i Aew, estou com um problema no Dialog aqui, ela nгo mostra tudo que й para aparecer, ela tipo que para na metade, porque disso?

pawn Код:
new strinb[2000];
        new info[1800];
        format(info, sizeof(info), "          -Nome- {D6655B}Indefinido | -Regid- {D6655B}Restrito | -Email- {D6655B}Restrito | -Ip- {D6655B}Restrito\n");
        strcat(string, info);
        format(info, sizeof(info), "       -Classe- {D6655B}Jogador | -Level- {D6655B}%d | Experiкncia {D6655B}%d/%d | -Online- {D6655B}0d 0h 0m 0s\n",Stats[giveplayerid][LEVEL],Stats[giveplayerid][PLAYEREXP],(Stats[giveplayerid][LEVEL]+1)*6);
        strcat(string, info);
        format(info, sizeof(info), "                    -Avisos- {D6655B}%d | -Mute- {D6655B}N/A | -Preso- {D6655B}Restrito\n",WarnedTimes[giveplayerid]);
        strcat(string, info);
        format(info, sizeof(info), "                    -Kill's- {D6655B}%d | -Death's- {D6655B}%d | -Ratio- {D6655B}%0.2f\n",Stats[giveplayerid][KILL], Stats[giveplayerid][DEATH], Float:Stats[giveplayerid][KILL]/Float:Stats[giveplayerid][DEATH]);
        strcat(string, info);
        format(info, sizeof(info), "                    -Gang- {D6655B}Restrito | -Vip- {D6655B}%d | -Cash- {D6655B}Restrito\n",Stats[giveplayerid][VIP]);
        strcat(string, info);
        format(info, sizeof(info), "        -Grana- {D6655B}R$%d | -Banco- {D6655B}Restrito | -Veнculo- {D6655B}Restrito | -Naзгo- {D6655B}Restrito\n",moneyplayer[giveplayerid]);
        strcat(string, info);
        format(info, sizeof(info), "            -DuelosWin- {D6655B}%d | -DuelosLose- {D6655B}%d | -RachasWin- {D6655B}{D6655B}%d | -RachasLose- {D6655B}%d\n",dini_IntPlayer(PlayerName(giveplayerid),"DueloWin"),dini_IntPlayer(PlayerName(giveplayerid),"DueloLose"),dini_IntPlayer(PlayerName(giveplayerid),"RachaWin"),dini_IntPlayer(PlayerName(giveplayerid),"RachaLose"));
        strcat(string, info);
        format(info, sizeof(info), "                    -RacesWin- {D6655B}%d | -DMsWin- {D6655B}%d | -DerbysWin- {D6655B}%d\n\n",dini_IntPlayer(PlayerName(giveplayerid),"RacesWin"),dini_IntPlayer(PlayerName(giveplayerid),"DMsWin"),dini_IntPlayer(PlayerName(giveplayerid),"DerbysWin"));
        strcat(string, info);
        format(info, sizeof(info), "           -Vida- {D6655B}%0.2f | -Colete- {D6655B}%0.2f | -Veнculo Model- {D6655B}%d | -Vida Veнculo- {D6655B}%0.2f\n",life,colete,GetVehicleModel(GetPlayerVehicleID(giveplayerid)),vidavei);
        strcat(string, info);
        format(info, sizeof(info), "                    -Skin- {D6655B}%d | -Interior- {D6655B}%d | -Ping- {D6655B}%d | -FPS- {D6655B}N/A\n",GetPlayerSkin(giveplayerid),GetPlayerInterior(giveplayerid),GetPlayerPing(giveplayerid));
        strcat(string, info);
        ShowPlayerDialog(playerid,STATUS,DIALOG_STYLE_MSGBOX,"Status:",string,"Sair","");
Por favor me ajudem!
Reply
#2

Neste caso a gente aumenta as cйlulas.
Reply
#3

Mas eu jй aumentei e nгo da nada, e tem hora que quando eu aumento buga todos os comandos '-'

@Edit

A e outra coisa tambйm se puderem me ajudar e para colocar o nick do player, e o id no lugar do titulo do Dialog, "Status:"
Reply
#4

Olha aqui, quando eu aumento as cйlulas e uso o comando "/status" para ver as informaзхes do player, todos os comandos do servidor param de funcionar aparecendo "SERVER: Unknwon command.", e no Console fica Flodando: [sampgdk] error: Too many callback arguments (at most 32 allowed).

Por que disso?
Reply
#5

Tente assim:

pawn Код:
new stringg[2000];
new info[1800];
format(info, sizeof(info), "          -Nome- {D6655B}Indefinido | -Regid- {D6655B}Restrito | -Email- {D6655B}Restrito | -Ip- {D6655B}Restrito\n");
strcat(stringg, info);
format(info, sizeof(info), "       -Classe- {D6655B}Jogador | -Level- {D6655B}%d | Experiкncia {D6655B}%d/%d | -Online- {D6655B}0d 0h 0m 0s\n",Stats[giveplayerid][LEVEL],Stats[giveplayerid][PLAYEREXP],(Stats[giveplayerid][LEVEL]+1)*6);
strcat(stringg, info);
format(info, sizeof(info), "                    -Avisos- {D6655B}%d | -Mute- {D6655B}N/A | -Preso- {D6655B}Restrito\n",WarnedTimes[giveplayerid]);
strcat(stringg, info);
format(info, sizeof(info), "                    -Kill's- {D6655B}%d | -Death's- {D6655B}%d | -Ratio- {D6655B}%0.2f\n",Stats[giveplayerid][KILL], Stats[giveplayerid][DEATH], Float:Stats[giveplayerid][KILL]/Float:Stats[giveplayerid][DEATH]);
strcat(stringg, info);
format(info, sizeof(info), "                    -Gang- {D6655B}Restrito | -Vip- {D6655B}%d | -Cash- {D6655B}Restrito\n",Stats[giveplayerid][VIP]);
strcat(stringg, info);
format(info, sizeof(info), "        -Grana- {D6655B}R$%d | -Banco- {D6655B}Restrito | -Veнculo- {D6655B}Restrito | -Naзгo- {D6655B}Restrito\n",moneyplayer[giveplayerid]);
strcat(stringg, info);
format(info, sizeof(info), "            -DuelosWin- {D6655B}%d | -DuelosLose- {D6655B}%d | -RachasWin- {D6655B}{D6655B}%d | -RachasLose- {D6655B}%d\n",dini_IntPlayer(PlayerName(giveplayerid),"DueloWin"),dini_IntPlayer(PlayerName(giveplayerid),"DueloLose"),dini_IntPlayer(PlayerName(giveplayerid),"RachaWin"),dini_IntPlayer(PlayerName(giveplayerid),"RachaLose"));
strcat(stringg, info);
format(info, sizeof(info), "                    -RacesWin- {D6655B}%d | -DMsWin- {D6655B}%d | -DerbysWin- {D6655B}%d\n\n",dini_IntPlayer(PlayerName(giveplayerid),"RacesWin"),dini_IntPlayer(PlayerName(giveplayerid),"DMsWin"),dini_IntPlayer(PlayerName(giveplayerid),"DerbysWin"));
strcat(stringg, info);
format(info, sizeof(info), "           -Vida- {D6655B}%0.2f | -Colete- {D6655B}%0.2f | -Veнculo Model- {D6655B}%d | -Vida Veнculo- {D6655B}%0.2f\n",life,colete,GetVehicleModel(GetPlayerVehicleID(giveplayerid)),vidavei);
strcat(stringg, info);
format(info, sizeof(info), "                    -Skin- {D6655B}%d | -Interior- {D6655B}%d | -Ping- {D6655B}%d | -FPS- {D6655B}N/A\n",GetPlayerSkin(giveplayerid),GetPlayerInterior(giveplayerid),GetPlayerPing(giveplayerid));
strcat(stringg, info);
ShowPlayerDialog(playerid,STATUS,DIALOG_STYLE_MSGBOX,"Status:",stringg,"Sair","");
Reply
#6

Nгo funciona, aparece "SERVER: Unknwon command."
Reply
#7

Poste o comando todo.
Reply
#8

Olha ae

pawn Код:
if(strcmp(cmd, "/status", true) == 0)
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_LIGHTBLUE, "Digite: /status [id-do-jogador]");
            giveplayerid = playerid;
        }
        else giveplayerid = strval(tmp);
        if(IsPlayerConnected(giveplayerid))
        {
            if(logged[giveplayerid]==1)
            {
                new Float:life,Float:colete,Float:vidavei;
                GetPlayerHealth(giveplayerid,life);
                GetPlayerArmour(giveplayerid,colete);
                GetVehicleHealth(GetPlayerVehicleID(giveplayerid),vidavei);
                if(giveplayerid==playerid)
                {
                //  SendClientMessage(playerid,COLOR_LARANJA2,"Meu Status:");
                /*}
                else
                {
                    format(string, sizeof(string), "Status de %s(id:%d):",PlayerName(giveplayerid),giveplayerid);
                    SendClientMessage(playerid,COLOR_LARANJA2,string);
                }
                format(string, sizeof(string), "Vida [%0.1f]  |  Colete [%0.1f]  |  Grana [R$%d]  |  Avisos [%d]  |  Veнculo ID [%d]",
                life, colete, moneyplayer[giveplayerid], WarnedTimes[giveplayerid], GetVehicleModel(GetPlayerVehicleID(giveplayerid)));
                SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
                format(string, sizeof(string), "Assassinatos [%d]  |  Mortes [%d]  |  Aproveitamento [%0.2f]  |  Vida Veнculo[%0.1f] | VIP Level[%d]",
                Stats[giveplayerid][KILL], Stats[giveplayerid][DEATH], Float:Stats[giveplayerid][KILL]/Float:Stats[giveplayerid][DEATH], vidavei, Stats[giveplayerid][VIP]);
                SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
                format(string, sizeof(string), "Level [%d]  |  Experiкncia [%d / %d]  |  Skin [%d]  |  Interior [%d]  |  Ping [%d]",
                Stats[giveplayerid][LEVEL],Stats[giveplayerid][PLAYEREXP],(Stats[giveplayerid][LEVEL]+1)*6,GetPlayerSkin(giveplayerid),
                GetPlayerInterior(giveplayerid), GetPlayerPing(giveplayerid));
                SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
                format(string,256,"Vitуrias em duelos [%d]  |  Derrotas em duelos [%d]  |  Vitуrias em rachas [%d]  |  Derrotas em rachas [%d]",
                dini_IntPlayer(PlayerName(giveplayerid),"DueloWin"),dini_IntPlayer(PlayerName(giveplayerid),"DueloLose"),
                dini_IntPlayer(PlayerName(giveplayerid),"RachaWin"),dini_IntPlayer(PlayerName(giveplayerid),"RachaLose"));
                SendClientMessage(playerid, COLOR_LIGHTBLUE,string);
            }*/

            {
            new stringg[2000];
            new info[1800];
            format(info, sizeof(info), "          -Nome- {D6655B}Indefinido | -Regid- {D6655B}Restrito | -Email- {D6655B}Restrito | -Ip- {D6655B}Restrito\n");
            strcat(stringg, info);
            format(info, sizeof(info), "       -Classe- {D6655B}Jogador | -Level- {D6655B}%d | Experiкncia {D6655B}%d/%d | -Online- {D6655B}0d 0h 0m 0s\n",Stats[giveplayerid][LEVEL],Stats[giveplayerid][PLAYEREXP],(Stats[giveplayerid][LEVEL]+1)*6);
            strcat(stringg, info);
            format(info, sizeof(info), "                    -Avisos- {D6655B}%d | -Mute- {D6655B}N/A | -Preso- {D6655B}Restrito\n",WarnedTimes[giveplayerid]);
            strcat(stringg, info);
            format(info, sizeof(info), "                    -Kill's- {D6655B}%d | -Death's- {D6655B}%d | -Ratio- {D6655B}%0.2f\n",Stats[giveplayerid][KILL], Stats[giveplayerid][DEATH], Float:Stats[giveplayerid][KILL]/Float:Stats[giveplayerid][DEATH]);
            strcat(stringg, info);
            format(info, sizeof(info), "                    -Gang- {D6655B}Restrito | -Vip- {D6655B}%d | -Cash- {D6655B}Restrito\n",Stats[giveplayerid][VIP]);
            strcat(stringg, info);
            format(info, sizeof(info), "        -Grana- {D6655B}R$%d | -Banco- {D6655B}Restrito | -Veнculo- {D6655B}Restrito | -Naзгo- {D6655B}Restrito\n",moneyplayer[giveplayerid]);
            strcat(stringg, info);
            format(info, sizeof(info), "            -DuelosWin- {D6655B}%d | -DuelosLose- {D6655B}%d | -RachasWin- {D6655B}{D6655B}%d | -RachasLose- {D6655B}%d\n",dini_IntPlayer(PlayerName(giveplayerid),"DueloWin"),dini_IntPlayer(PlayerName(giveplayerid),"DueloLose"),dini_IntPlayer(PlayerName(giveplayerid),"RachaWin"),dini_IntPlayer(PlayerName(giveplayerid),"RachaLose"));
            strcat(stringg, info);
            format(info, sizeof(info), "                    -RacesWin- {D6655B}%d | -DMsWin- {D6655B}%d | -DerbysWin- {D6655B}%d\n\n",dini_IntPlayer(PlayerName(giveplayerid),"RacesWin"),dini_IntPlayer(PlayerName(giveplayerid),"DMsWin"),dini_IntPlayer(PlayerName(giveplayerid),"DerbysWin"));
            strcat(stringg, info);
            format(info, sizeof(info), "           -Vida- {D6655B}%0.2f | -Colete- {D6655B}%0.2f | -Veнculo Model- {D6655B}%d | -Vida Veнculo- {D6655B}%0.2f\n",life,colete,GetVehicleModel(GetPlayerVehicleID(giveplayerid)),vidavei);
            strcat(stringg, info);
            format(info, sizeof(info), "                    -Skin- {D6655B}%d | -Interior- {D6655B}%d | -Ping- {D6655B}%d | -FPS- {D6655B}N/A\n",GetPlayerSkin(giveplayerid),GetPlayerInterior(giveplayerid),GetPlayerPing(giveplayerid));
            strcat(stringg, info);
            ShowPlayerDialog(playerid,STATUS,DIALOG_STYLE_MSGBOX,"Status:",stringg,"Sair","");
            }
          }
        }
        else SendClientMessage(playerid,COLOR_VERMELHO, "Este jogador nгo estб logado!");
        }
        else SendClientMessage(playerid,COLOR_VERMELHO, "Este jogador nгo estб conectado!");
        return 1;
    }
Reply
#9

Alguйm?
Reply
#10

Alguйm poderia me ajudar por favor
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)