View Single Post
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 08-15-2018 , 11:50   Re: [Any] Dev Zones (with natives for developers)
Reply With Quote #146

Spoiler


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); }

Last edited by ZASTRELIS; 08-15-2018 at 11:51.
ZASTRELIS is offline