AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Fix this code... (https://forums.alliedmods.net/showthread.php?t=173253)

kramesa 12-02-2011 15:55

Fix this code...
 
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 
    
}



KillLikoe 12-02-2011 16:11

Re: 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 
    
}



fysiks 12-03-2011 00:30

Re: Fix this code...
 
Quote:

Originally Posted by kramesa (Post 1606540)
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.


All times are GMT -4. The time now is 08:23.

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