It's amazing what a bloody typo can do to you.
I was so aware of the differences in these two...I guess I copied and pasted or something..not sure how this one slipped by.
Well, respawning an ent works perfectly now that I added "Ent" to the end. The problem is, the loop still doesn't work.
Code:
static maxents;
maxents = global_get( glb_maxEntities );
for( new i = 1; i < maxents; i++ )
if( pev_valid(i) && !is_user_connected(i) ) ExecuteHam( Ham_DOD_RoundRespawnEnt, i );
console_print( id, "Reset All %i Entities", maxents );
It still never gets to the echo. I added the is_user_connected to make sure it wasn't a player.
Is there any way to check if the entity is a map-entity that is supposed to be respawned? Or another check I can do so that this loop works?
__________________