14.07.2014, 22:41
What Jefff said, or:
You said you wanted it without a stock.
I propose this way over any other, it's the fastest, but be careful that "bMonthNumber" is an integer between 1..12 (and also never 0!)
and if it's not you shouldn't execute the code I posted as an example.
pawn Код:
stock const szMonthNames[12][10] =
{
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
};
// Somewhere in a function:
new szMessage[48];
format(szMessage, 48, "Month name: %s", szMonthNames[--Player[playerid][bMonthNumber]]);
I propose this way over any other, it's the fastest, but be careful that "bMonthNumber" is an integer between 1..12 (and also never 0!)
and if it's not you shouldn't execute the code I posted as an example.