I made a map, with custom entities. Compiled fine. I want to find those entities with amxx and get origin and keyvalues. Seems like i can't find those entities... i tried:
PHP Code:
new ent=-1,n
while((ent=engfunc(EngFunc_FindEntityByString,ent,"classname","my_classname")) != 0 && n < MAX_FLAGS+1)
n++
log_amx("n=%d",n)
n returned 0
I also tried registering FM_Spawn forward in precache and unregistering it on plugin_init.. it logged all entities except mine... I tried with FM_KeyValue.. the same. All except mine. I decompiled the map and still those entities were there. Strange? Any ideas?