08.11.2015, 13:00
Quote:
Show your code.
Does any of your scripts uses OnPlayerClickTextDraw? Update 2.0.3 (minor change):
|
Show your code.
Does any of your scripts uses OnPlayerClickTextDraw? Update 2.0.3 (minor change):
|
Hello friends. I am using the include Dialog.inc created by Gammix. I have a problem with pages of dialogs:
I'm using DIALOG_STYLE_PREVMODEL_LIST whose maximum space are 5. I use 311 items (the skin of sa-mp), but it does not appear to move to the next page. |
for(new i = 0;i < MAX_EQUIPEMENT_POINT;i++) { if(EQUIP_CASE[EquipID][i][EQUIPC_TYPE]==cType) { format(string, sizeof(string), "%s%d\n%s\n",string,EQUIP_CASE[EquipID][i][EQUIPC_MODEL],EQUIP_CASE[EquipID][i][EQUIPC_NAME]); } } ShowPlayerDialog(playerid, DIALOGID+383, DIALOG_STYLE_PREVMODEL_LIST, EquipType[cType],string,"Changer","Retour");
Hi!, i have a problem with lettersize. Is there any solution? Because the letter size is very small and i cannot read well the text jejeje
|
Код:
for(new i = 0;i < MAX_EQUIPEMENT_POINT;i++) { if(EQUIP_CASE[EquipID][i][EQUIPC_TYPE]==cType) { format(string, sizeof(string), "%s%d\n%s\n",string,EQUIP_CASE[EquipID][i][EQUIPC_MODEL],EQUIP_CASE[EquipID][i][EQUIPC_NAME]); } } ShowPlayerDialog(playerid, DIALOGID+383, DIALOG_STYLE_PREVMODEL_LIST, EquipType[cType],string,"Changer","Retour"); |
Dialog_SetListitem(playerid, listitem, string[] = "", model = -1, Float:x = -1000.0, Float:y = -1000.0, Float:z = -1000.0, Float:zoom = -1000.0, font = -1, Float:fontsize = 0.0);
static Dialog_ShowList(playerid, info[], page, selected)
if ((t_iSplitItems % 2) > 0) { t_iSplitItems -= 1; }
if (t_iSplitItems == 0) { t_iSplitItems -= 1; }
#define T_DIALOG_SIZE 2 #define T_DIALOG_DECAL 4.0
static Dialog_PTDCreate
PlayerTextDrawLetterSize(playerid, var, lettersizeX, lettersizeY);
PlayerTextDrawLetterSize(playerid, var, lettersizeX*T_DIALOG_SIZE, lettersizeY*T_DIALOG_SIZE);
static Dialog_ShowHUDS
stock static Dialog_ShowHUDS(playerid, title[], button1[], button2[]) { Dialog_PTDCreate(g_PlayerDialogHUDS[playerid][e_txtPlayerDialogTitle], playerid, 173.000000, 121.000000, title, 50, 1, 0.129998, 0.799998, -36, 0, 0, 1, 1, 0); PlayerTextDrawShow(playerid, g_PlayerDialogHUDS[playerid][e_txtPlayerDialogTitle]); if (button2[0]) { Dialog_PTDCreate(g_PlayerDialogHUDS[playerid][e_txtPlayerDialogButtonLeft], playerid, 278.000000, 311.000000, button1, 50, 1, 0.129998, 0.799998, -36, 2, 0, 1, 1, 0); PlayerTextDrawShow(playerid, g_PlayerDialogHUDS[playerid][e_txtPlayerDialogButtonLeft]); Dialog_PTDCreate(g_PlayerDialogHUDS[playerid][e_txtPlayerDialogButtonRight], playerid, 348.000000, 311.000000, button2, 50, 1, 0.140000, 0.899999, -36, 2, 0, 1, 1, 0); PlayerTextDrawShow(playerid, g_PlayerDialogHUDS[playerid][e_txtPlayerDialogButtonRight]); g_PlayerDialogInfo[playerid][e_pDialogDualButtons] = true; } else { Dialog_PTDCreate(g_PlayerDialogHUDS[playerid][e_txtPlayerDialogButtonCenter], playerid, 317.000000, 311.000000, button1, 50, 1, 0.140000, 0.899999, -36, 2, 0, 1, 1, 0); PlayerTextDrawShow(playerid, g_PlayerDialogHUDS[playerid][e_txtPlayerDialogButtonCenter]); g_PlayerDialogInfo[playerid][e_pDialogDualButtons] = false; } }
stock static Dialog_ShowHUDS(playerid, title[], button1[], button2[]) { Dialog_PTDCreate(g_PlayerDialogHUDS[playerid][e_txtPlayerDialogTitle], playerid, 173.000000, 121.000000-T_DIALOG_DECAL, title, 50, 1, 0.129998, 0.799998, -36, 0, 0, 1, 1, 0); PlayerTextDrawShow(playerid, g_PlayerDialogHUDS[playerid][e_txtPlayerDialogTitle]); if (button2[0]) { Dialog_PTDCreate(g_PlayerDialogHUDS[playerid][e_txtPlayerDialogButtonLeft], playerid, 278.000000, 311.000000-T_DIALOG_DECAL, button1, 50, 1, 0.129998, 0.799998, -36, 2, 0, 1, 1, 0); PlayerTextDrawShow(playerid, g_PlayerDialogHUDS[playerid][e_txtPlayerDialogButtonLeft]); Dialog_PTDCreate(g_PlayerDialogHUDS[playerid][e_txtPlayerDialogButtonRight], playerid, 348.000000, 311.000000-T_DIALOG_DECAL, button2, 50, 1, 0.140000, 0.899999, -36, 2, 0, 1, 1, 0); PlayerTextDrawShow(playerid, g_PlayerDialogHUDS[playerid][e_txtPlayerDialogButtonRight]); g_PlayerDialogInfo[playerid][e_pDialogDualButtons] = true; } else { Dialog_PTDCreate(g_PlayerDialogHUDS[playerid][e_txtPlayerDialogButtonCenter], playerid, 317.000000, 311.000000-T_DIALOG_DECAL, button1, 50, 1, 0.140000, 0.899999, -36, 2, 0, 1, 1, 0); PlayerTextDrawShow(playerid, g_PlayerDialogHUDS[playerid][e_txtPlayerDialogButtonCenter]); g_PlayerDialogInfo[playerid][e_pDialogDualButtons] = false; } }
#define T_DIALOG_SIZE 1 #define T_DIALOG_DECAL 0.0
#pragma dynamic (DIALOG_MAX_LISTITEMS * DIALOG_MAX_LISTITEM_SIZE * 4)
new t_sSplit[DIALOG_MAX_LISTITEMS][DIALOG_MAX_LISTITEM_SIZE];
I think this i have a problem with #pragma dynamic.
Any ideas? Edit: When i delete this line Код:
#pragma dynamic (DIALOG_MAX_LISTITEMS * DIALOG_MAX_LISTITEM_SIZE * 4) Код:
new t_sSplit[DIALOG_MAX_LISTITEMS][DIALOG_MAX_LISTITEM_SIZE]; |