Raised This Month: $ Target: $400
 0% 

For loop isn't looping?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 06-04-2007 , 15:25   For loop isn't looping?
Reply With Quote #1

I've been trying to create a plugin for TFC that allows players to walk through each other when they are in distance, and also check to see if there are any entities they need to interact with. The best way so far I found to check if players are near entities was to log the entity origins on their spawn, then check later on.

If the players aren't near each other they stay solid.
If players are near each other they become not solid.
If players are near each other, but also near an interaction entity, they become solid.

In the prethink it seems like the second for loop isn't looping.

I posted the full code here...
http://ampaste.net/19106

Hopefully someone can help me figure this out : /
I'm so confused, and my programming abilities aren't that great still.

Note: Alot of the code is from around the forum.
hlstriker is offline
 



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 10:36.


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