06.05.2017, 11:13
Heres my dialog code:
Only the Firearms storage is showing in the Dialog but not the narcotics and the Narcotics define is:
Any help? I want it to show the 40 in the dialog
PHP код:
CMD:bphelp(playerid, params[])
{
new string[1024];
strcat(string, "{FF0000}Small Backpack Information:{FFFFFF}\n");
strcat(string, "{00FF00}Narcotics Storage:{FFFFFF}\t\t\t\t\t %d Grams\n", BP_NARC);
strcat(string, "{00FF00}Firearms Storage:{FFFFFF}\t\t\t\t\t 40 Grams\n");
ShowPlayerDialog(playerid,DIALOG_BACKPACKHELP,DIALOG_STYLE_MSGBOX, "{FFFF00}Information:{FFFFFF} Backpacks", string, "Close", "");
return 1;
}
PHP код:
#define BP_NARC 40