Raised This Month: $ Target: $400
 0% 

General Question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 05-05-2012 , 23:12   Re: General Question
Reply With Quote #1

you try to filtre "is user spectated or unassigned team"?
cs_get_user_team return team index
if teamindex>0 then it will be true
__________________
The functional way is the right way

Last edited by GordonFreeman (RU); 05-05-2012 at 23:13.
GordonFreeman (RU) is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-06-2012 , 02:18   Re: General Question
Reply With Quote #2

I asked this before and IIRC, execution does not continue across an AND if the first condition is false. You could try to find my post and see what the answer was for sure.

You could even test it. Change "i" to an invalid player and run the code with g_mode = 0. If you get an error then it does execute, if no error then it doesn't execute.

Quote:
Originally Posted by GordonFreeman (RU) View Post
you try to filtre "is user spectated or unassigned team"?
cs_get_user_team return team index
if teamindex>0 then it will be true
Nothing you said has anything to do with his question.
__________________
fysiks is offline
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 00:24.


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