Raised This Month: $ Target: $400
 0% 

Scripting Question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 10-04-2014 , 12:59   Re: Scripting Question
Reply With Quote #1

Quote:
Originally Posted by HamletEagle View Post
Yes
no
why are people suggesting this crap, the player joining will see both messages

PHP Code:
new iPlayers[32]
            new 
iNum
            
new player
            get_players
iPlayersiNum )
new 
szName32 ]; 
    
get_user_nameidszNamecharsmaxszName ) )
            for( new 
0iNumi++ )
            {
                
player iPlayers[i]
                if(
player==id)
                        
client_printidprint_chat"Welcome to the server!" );

                else
client_printplayerprint_chat"The server is welcoming %s!"szName )             } 
holy shit that's some horrible indentation
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.

Last edited by aron9forever; 10-04-2014 at 13:14. Reason: don't want the welcoming message 31 times on a full server
aron9forever is offline
Baws
Veteran Member
Join Date: Oct 2012
Old 10-04-2014 , 16:14   Re: Scripting Question
Reply With Quote #2

Quote:
Originally Posted by aron9forever View Post
no
why are people suggesting this crap, the player joining will see both messages

PHP Code:
new iPlayers[32]
            new 
iNum
            
new player
            get_players
iPlayersiNum )
new 
szName32 ]; 
    
get_user_nameidszNamecharsmaxszName ) )
            for( new 
0iNumi++ )
            {
                
player iPlayers[i]
                if(
player==id)
                        
client_printidprint_chat"Welcome to the server!" );

                else
client_printplayerprint_chat"The server is welcoming %s!"szName )             } 
holy shit that's some horrible indentation
lol nice one
__________________
Like my clean plugins and work?
Baws is offline
Kuma77
Senior Member
Join Date: Sep 2014
Location: Behind PC
Old 10-04-2014 , 17:11   Re: Scripting Question
Reply With Quote #3

this Issue already sloved !! right Awesome_man
__________________
SPACE TIME

Last edited by Kuma77; 10-04-2014 at 17:12. Reason: nothing matter
Kuma77 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:41.


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