This still applies:
Quote:
Originally Posted by Nextra
- 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 i = 0 ; i < count ; i++)
{
index = players[i];
if (is_user_connected(index))
{
message_begin(MSG_ONE_UNRELIABLE, say_text,_, index);
write_byte(index);
write_string(msg);
}
}
__________________