Raised This Month: $ Target: $400
 0% 

Restart Round? [Solved]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 11-22-2007 , 09:32   Re: Restart Round?
Reply With Quote #3

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?
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician

Last edited by Wilson [29th ID]; 11-22-2007 at 09:45.
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode