22.02.2013, 01:29
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.
Desde Ya muchas Gracias.
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);