strcpy always storing empty string
#1

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:

pawn Код:
#define MAX_ITEM_NAME           (24)

enum itInfo
{
    itName[MAX_ITEM_NAME],
    ...
}

stock ItemCreate(itemName[], ...)
{
    ...
    strcpy(ItemInfo[itemid][itName], itemName, MAX_ITEM_NAME);
    ...
}
Any help would be appreciated.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)