View Single Post
Senior Member
Join Date: Aug 2012
Location: Russia
Old 07-05-2022 , 15:31   Re: Spawned a NULL entity
Reply With Quote #4

Have a look at using engfunc with EngFunc_CreateNamedEntity.
PHP Code:
iEnt engfunc(EngFunc_CreateNamedEntityserver_data[LASER_ENTITY]) 
server_data[LASER_ENTITY] - should be init by using engfunc(EngFunc_AllocString, "info_target") where "info_target" is classname, which can be changed to suit your needs.
There is no server_data[LASER_ENTITY] initialization in your code, by default all variables in the pawn are initialized to zero.
Mistrick is offline