Raised This Month: $ Target: $400
 0% 

Voting menu won't display.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 07-20-2011 , 10:32   Re: Voting menu won't display.
Reply With Quote #5

Now I have another question.
Your fix works good, but after map vote is done, the server crashes.... I'll send you the public where it goes after ending the vote, tell me why is that..

PHP Code:
/* Global Variable in this code */
new changemapto
/* Global... */

public EndVote()
{
    new 
0;
    new 
0;
    
    while ((
!= 5) && (!= 5))
    {
        if (
gVotes[x] >= gVotes[c])
        {
    
            if ((
== 4) && (== 4))
            {
                
client_print(0print_chat"%s The current map will be extended for this match. Match will start in 10 seconds."PREFIX)
                
set_task(10.0"StartMatch"
                continue;
            }
                    
            else if ((
== 0) && (== 4))
            {
                
client_print(0print_chat"%s The map will be changed within 10 seconds. The map that was chosen is: %s."PREFIXmapschosen[0])
                
changemapto 0
                set_task
(10.0"ChangeMap")
                continue;
            }
                
            else if ((
== 1) && (== 4))
            {
                
client_print(0print_chat"%s The map will be changed within 10 seconds. The map that was chosen is: %s."PREFIXmapschosen[1])
                
changemapto 1
                set_task
(10.0"ChangeMap")
                continue;
            }
                
            else if ((
== 2) && (== 4))
            {
                
client_print(0print_chat"%s The map will be changed within 10 seconds. The map that was chosen is: %s."PREFIXmapschosen[2])
                
changemapto 2
                set_task
(10.0"ChangeMap")
                continue;
            }
                
            else if ((
== 3) && (== 4))
            {
                
client_print(0print_chat"%s The map will be changed within 10 seconds. The map that was chosen is: %s."PREFIXmapschosen[3])
                
changemapto 3
                set_task
(10.0"ChangeMap")
                continue;
            }
            
c++
        }
        
        else
        {
            
x++
            
0
        
}
    }        
}

public 
ChangeMap()
{
    new 
maptochangeto[25]
    
    
copy(maptochangeto24mapschosen[changemapto])
    
server_cmd("changelevel %s"maptochangeto)


Last edited by Diegorkable; 07-20-2011 at 10:39.
Diegorkable is offline
 



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 00:51.


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