Please, you must add right, your non third party functions(as smlib), when building you project. It will fix some mistakes in feature.. imho not using it, never
Code:
/**
* Gets the Global Name of an entity.
*
* @param entity Entity index.
* @param buffer Return/Output buffer.
* @param size Max size of buffer.
* @return Number of non-null bytes written.
*/
stock int Entity_GetGlobalName(int entity, char[] buffer, int size)
{
return GetEntPropString(entity, Prop_Data, "m_iGlobalname", buffer, size);
}
/**
* Sets the Global Name of an entity.
*
* @param entity Entity index.
* @param name The global name you want to set.
* @return True on success, false otherwise.
*/
stock bool Entity_SetGlobalName(int entity, const char[] name, any:...)
{
char format[128];
VFormat(format, sizeof(format), name, 3);
return DispatchKeyValue(entity, "globalname", format);
}