14.02.2017, 18:37
Quote:
|
You have to use strcat / strunpack for packed string.
Example: Код:
static const
name[][] = {
{!"Medkit" },
{!"Computer" },
{!"Jus" },
{!"Journal" },
{!"Burger" }
}
;
new msg[56];
format(msg, 56, "You have %d ", 2);
strcat(msg, name[1]); // msg = You have 2 Computer
// or...
new itemname[10];
strunpack(itemname, name[1]);
format(msg, 56, "You have %d %s", 2, itemname); // msg = You have 2 Computer
|

