Raised This Month: $ Target: $400
 0% 

Touch positions problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shauli
Member
Join Date: Jun 2018
Old 06-22-2018 , 10:16   Re: Touch positions problem
Reply With Quote #1

Quote:
Originally Posted by JocAnis View Post
@shauli, thanks for help, but Kushfield helped me and its fixed now...so it went from:

if( containi( targetName, cp_ents[i] ))

to just

if(cp_ents[i-1] == ent)
That's fine but it's not really necessary, iuser/fuser/vuser exists exactly for the stuff you're trying to do, it will be easier to use it. You don't need a for loop, it will be like this:

PHP Code:
public touched1entid 

    new 
cp pev(entpev_iuser1);

     if( !
run_run[cp] ) //or cp+1, you decide 
     

          
run_run[cp]=true 
          Time_igrac 
get_gametime() - cp_time[id][i
                 
          
client_printidprint_chat"You touched: %i; time: %.02f (FILE: %.02f)"cpTime_igracofficial_time[1][cp_count+1] ) 

     } 

shauli 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 12:35.


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