View Single Post
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-13-2017 , 08:36   Re: Question creating an entity "classname"
Reply With Quote #2

Quote:
Originally Posted by abdobiskra View Post
PHP Code:
   new ent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"info_target")) 
   
entity_set_string(entEV_SZ_classname"my_classname"
Why not just
PHP Code:
new ent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"my_classname")) 
?
Try it.
__________________
HamletEagle is offline