It doesn't expect a string, but an integer, which is basically a kind of offset.
You have to call
EngFunc_AllocString on the concerned string and use its return in
CREATE_NAMED_ENTITY.
To get a string from such kind of offset you can use
EngFunc_SzFromIndex or
glb_pStringBase.
Note: on constants strings, game does such trick, code copied from HLDSK:
Code:
// Use this instead of ALLOC_STRING on constant strings
#define STRING(offset) ((const char *)(gpGlobals->pStringBase + (unsigned int)(offset)))
#define MAKE_STRING(str) ((uint64)(str) - (uint64)(STRING(0)))
But in a plugin I guess you have no choice to allocate, so it might be a good idea to do it one time.
__________________