1.1 --- a/plugins/basechat.sp Sun Oct 05 04:19:39 2008 -0700
1.2 +++ b/plugins/basechat.sp Sun Oct 05 15:20:17 2008 -0700
1.3 @@ -237,8 +237,7 @@
1.4
1.5 decl String:nameBuf[MAX_NAME_LENGTH];
1.6
1.7 - new maxClients = GetMaxClients();
1.8 - for (new i = 1; i <= maxClients; i++)
1.9 + for (new i = 1; i <= MaxClients; i++)
1.10 {
1.11 if (!IsClientConnected(i) || IsFakeClient(i))
1.12 {
1.13 @@ -270,7 +269,6 @@
1.14 GetClientName(client, name, sizeof(name));
1.15
1.16 new color = FindColor(colorStr);
1.17 - new maxClients = GetMaxClients();
1.18 new String:nameBuf[MAX_NAME_LENGTH];
1.19
1.20 if (color == -1)
1.21 @@ -279,7 +277,7 @@
1.22 len = 0;
1.23 }
1.24
1.25 - for (new i = 1; i <= maxClients; i++)
1.26 + for (new i = 1; i <= MaxClients; i++)
1.27 {
1.28 if (!IsClientConnected(i) || IsFakeClient(i))
1.29 {
1.30 @@ -407,11 +405,9 @@
1.31
1.32 SendChatToAll(client, String:message[])
1.33 {
1.34 - new maxClients;
1.35 new String:nameBuf[MAX_NAME_LENGTH];
1.36
1.37 - maxClients = GetMaxClients();
1.38 - for (new i = 1; i <= maxClients; i++)
1.39 + for (new i = 1; i <= MaxClients; i++)
1.40 {
1.41 if (!IsClientConnected(i) || IsFakeClient(i))
1.42 {
1.43 @@ -433,9 +429,8 @@
1.44 DisplayCenterTextToAll(client, String:message[])
1.45 {
1.46 new String:nameBuf[MAX_NAME_LENGTH];
1.47 - new maxClients = GetMaxClients();
1.48
1.49 - for (new i = 1; i < maxClients; i++)
1.50 + for (new i = 1; i < MaxClients; i++)
1.51 {
1.52 if (!IsClientConnected(i) || IsFakeClient(i))
1.53 {
1.54 @@ -448,9 +443,7 @@
1.55
1.56 SendChatToAdmins(String:name[], String:message[])
1.57 {
1.58 - new iMaxClients = GetMaxClients();
1.59 -
1.60 - for (new i = 1; i <= iMaxClients; i++)
1.61 + for (new i = 1; i <= MaxClients; i++)
1.62 {
1.63 if (IsClientInGame(i))
1.64 {
1.65 @@ -500,8 +493,7 @@
1.66 SetPanelCurrentKey(mSayPanel, 10);
1.67 DrawPanelItem(mSayPanel, "Exit", ITEMDRAW_CONTROL);
1.68
1.69 - new MaxClients = GetMaxClients();
1.70 - for(new i = 1; i < MaxClients; i++)
1.71 + for(new i = 1; i <= MaxClients; i++)
1.72 {
1.73 if(IsClientInGame(i) && !IsFakeClient(i))
1.74 {