Ayuda, Como pasar esto a ...
#1

Buenas a todos, keria saber como puedo pasar este codigo a ShowPlayerDialog
con el tipo DIALOG_STYLE_MSGBOX?

Recueden ke el bucle crea SendClientMessage segun la cantidad de slots.

pawn Код:
SendClientMessage(playerid, COLOR_LIGHT_BLUE, "|_______ Maletero _______|");
                        for(new slot = 1; slot != MAX_TRUNK_SLOTS; slot++)
                        {
                            new gunname[100];
                            if(vehTrunk[result][slot] != 0)
                            {
                                GetWeaponName(vehTrunk[result][slot], gunname, sizeof(gunname));
                                format(string, sizeof(string), "| Slot %i: %s (Balas: %i)", slot, gunname, vehTrunkAmmo[result][slot]);
                                SendClientMessage(playerid, COLOR_WHITE, string);
                            }
                            else
                            {
                                format(string, sizeof(string), "| Slot %i: Nada (Balas: Nada)", slot);
                                SendClientMessage(playerid, COLOR_WHITE, string);
                            }
                        }
                        format(string, sizeof(string), "| Chaleco: %f%", vehTrunkArmour[result]);
                        SendClientMessage(playerid, COLOR_WHITE, string);
Desde Ya muchas Gracias.
Reply
#2

utiliza strcat y un format es lo que se me viene en mente
Reply
#3

si yo tambien pense en strcat , pero no se me ocurre como ubicarlopara ke haga eso , ya he intentado un monton de formas y no va :S
Reply
#4

Esto es solo un ejemplo.
pawn Код:
string_final[512];
string[128];

for(....blabla
    format(string,sizeof string,"......\n",parametros);
    strcat(string_final,string);
}
ShowPlayerDialog(playerid,ID,STYLE,"blabla",string_final,"OK","");
Reply
#5

Quote:
Originally Posted by Daniel-92
Посмотреть сообщение
Esto es solo un ejemplo.
pawn Код:
string_final[512];
string[128];

for(....blabla
    format(string,sizeof string,"......\n",parametros);
    strcat(string_final,string);
}
ShowPlayerDialog(playerid,ID,STYLE,"blabla",string_final,"OK","");
gracias, funciono perfectamente .
no utilizo mucho el strcat y no me funcionaba por ke me ovidaba de algo esencial :P .

Muchas Gracias. .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)