Raised This Month: $ Target: $400
 0% 

Help with while


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kiske
Veteran Member
Join Date: May 2009
Old 07-31-2011 , 15:46   Re: Help with while
Reply With Quote #1

Quote:
Originally Posted by Exolent[jNr] View Post
Because player indexes are before entity indexes.

You have to check if that entity is near before checking for players, meaning 2 different loops.
Thanks.

Quote:
Originally Posted by Javivi View Post
Thats because players are entities too, you can solve that by checking that your ent is not a player.
!( 1 <= ent <= 32 )
PHP Code:
#define is_user_valid_alive(%1) (1 <= %1 <= g_maxplayers && is_user_alive(id))

if(!is_user_valid_alive(e)) continue; 
Kiske is offline
Send a message via Skype™ to Kiske
Reply



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 03:24.


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