plugins/include/menus.inc
changeset 2920 1d5645ab7ae0
parent 2737 eb7713d87fa1
child 3179 00fde3201646
     1.1 --- a/plugins/include/menus.inc	Mon Feb 08 20:10:24 2010 -0800
     1.2 +++ b/plugins/include/menus.inc	Mon Feb 08 20:14:52 2010 -0800
     1.3 @@ -490,11 +490,10 @@
     1.4   */
     1.5  stock VoteMenuToAll(Handle:menu, time, flags=0)
     1.6  {
     1.7 -	new num = GetMaxClients();
     1.8  	new total;
     1.9 -	decl players[num];
    1.10 +	decl players[MaxClients];
    1.11  	
    1.12 -	for (new i=1; i<=num; i++)
    1.13 +	for (new i=1; i<=MaxClients; i++)
    1.14  	{
    1.15  		if (!IsClientInGame(i))
    1.16  		{