View Single Post
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 04-10-2009 , 19:57   Re: Round Message w/ VOX v2.0
Reply With Quote #10

This still applies:
Quote:
Originally Posted by Nextra View Post
- Cache the values of get_mapname and get_maxplayers globally, they will not change midgame.
Additionally, you should follow this Wiki Entry. You are using players[i] multiple times so it is much better to do the following:

PHP Code:
new index;

for (new 
count i++)
{
    
index players[i];
    if (
is_user_connected(index))
    {
        
message_begin(MSG_ONE_UNRELIABLEsay_text,_index);
        
write_byte(index);
        
write_string(msg);
    }        

__________________
In Flames we trust!
Nextra is offline