Raised This Month: $51 Target: $400
 12% 

[solved] disable client_print for me


Post New Thread Reply   
 
Thread Tools Display Modes
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 12-27-2016 , 09:09   Re: [solved] disable client_print for me
Reply With Quote #11

Quote:
Originally Posted by HamletEagle View Post
I simply don't get why people refuse to think before doing something. What's the point in putting the client_print inside a loop if you are still using 0 as index? You send to everyone, so it's expected that it will be send multiple times. Instead, you should send only to one player(that's why you loop all indexes).
Is not cleary he don't know what the loop it does ?
look:
PHP Code:
  for( new i=0PlayerCounti++ )
    {
       
//here [id]
      
if(off[id] == true
    {
      
// here id
        
get_user_name(id,szName,charsmax(szName)); 
        
//now printing my name times*playersnum suppose 10 players then my name is spamming 10times same msg
        //here '0'
        
client_print(0,print_chat,"%s, Hey its a alliedmodders",szName); 
     }
   }     

He can remove the loop at all )

He don't know how to use it that's why..
__________________
Project: Among Us

Last edited by Craxor; 12-27-2016 at 09:10.
Craxor is offline
Send a message via ICQ to Craxor
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 12-27-2016 , 09:13   Re: [solved] disable client_print for me
Reply With Quote #12

Thanks HamletEagle and Craxor for explanation of looping i will keep this explanation in my pocket from next time
__________________
Thanks everyone. #miss_you_all
indraraj striker 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 17:21.


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