06.05.2017, 11:23
Quote:
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,DIAL OG_STYLE_MSGBOX, "{FFFF00}Information:{FFFFFF} Backpacks", string, "Close", ""); return 1; } |
Checkout the below modified code,
PHP код:
CMD:bphelp(playerid, params[])
{
new string[1024], new tmp[500];
strcpy(string, "{FF0000}Small Backpack Information:{FFFFFF}\n");
format(tmp, "{00FF00}Narcotics Storage:{FFFFFF}\t\t\t\t\t %d Grams\n", BP_NARC);
strcat(string, tmp);
strcpy(tmp, "{00FF00}Firearms Storage:{FFFFFF}\t\t\t\t\t 40 Grams\n");
strcat(string, tmp);
ShowPlayerDialog(playerid,DIALOG_BACKPACKHELP,DIALOG_STYLE_MSGBOX, "{FFFF00}Information:{FFFFFF} Backpacks", string, "Close", "");
return 1;
}