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


Messages In This Thread
strcpy always storing empty string - by T0pAz - 10.02.2013, 18:54

Forum Jump:


Users browsing this thread: 2 Guest(s)