Raised This Month: $ Target: $400
 0% 

Fix this code...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 12-02-2011 , 15:55   Fix this code...
Reply With Quote #1

Hi, can you fix this code?

PHP Code:
public pug_votemap_change(iWinner

    new 
Map[32
    
get_mapname(Map31
    
    if(
Map != iWinner
    {
        return 
PLUGIN_HANDLED 
    

    else 
    { 
        
server_cmd("changelevel %s",pug_votemap_name[iWinner]); 
        return 
PLUGIN_HANDLED 
    
}

__________________

Last edited by kramesa; 12-02-2011 at 16:07.
kramesa is offline
Old 12-02-2011, 16:07
stevenisecko138
This message has been deleted by stevenisecko138.
Old 12-02-2011, 16:07
stevenisecko138
This message has been deleted by stevenisecko138.
KillLikoe
BANNED
Join Date: Nov 2010
Location: Paraguay
Old 12-02-2011 , 16:11   Re: Fix this code...
Reply With Quote #2

PHP Code:
public pug_votemap_change(iWinner
{
    new 
Map[32
    
get_mapname(Map31
    
    if(
Map != iWinner
    {
        return 
PLUGIN_HANDLED 
    

    else 
    { 
        
server_cmd("changelevel %s",pug_votemap_name[iWinner]); 
        return 
PLUGIN_HANDLED 
    
}


Last edited by KillLikoe; 12-02-2011 at 16:12.
KillLikoe is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-03-2011 , 00:30   Re: Fix this code...
Reply With Quote #3

Quote:
Originally Posted by kramesa View Post
Hi, can you fix this code?

PHP Code:
public pug_votemap_change(iWinner

    new 
Map[32
    
get_mapname(Map31
    
    if(
Map != iWinner
    {
        return 
PLUGIN_HANDLED 
    

    else 
    { 
        
server_cmd("changelevel %s",pug_votemap_name[iWinner]); 
        return 
PLUGIN_HANDLED 
    
}

You've been here long enough to know what you need to say when asking for help. If you are incapable of doing that to at least some degree then you should stop posting here.

Also, you should learn how to fix such simple mistakes otherwise you will never be good at writing plugins.
__________________
fysiks is offline
Reply



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 08:23.


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