10.02.2013, 18:54
I have this weird problem lately when I switched to strcpy from format for copying strings. It always stores empty string. Here's the code FYI:
Any help would be appreciated.
pawn Код:
#define MAX_ITEM_NAME (24)
enum itInfo
{
itName[MAX_ITEM_NAME],
...
}
stock ItemCreate(itemName[], ...)
{
...
strcpy(ItemInfo[itemid][itName], itemName, MAX_ITEM_NAME);
...
}