AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   copiler error (https://forums.alliedmods.net/showthread.php?t=94654)

pro.evolution | leonel 06-13-2009 18:10

copiler error
 
PHP Code:

#include <amxmodx>
#include <amxmisc>
#pragma semicolon 1
#define menucmd "[gungame] menu admin"
#define menudescription "[pro.evolution] gungame"
#define menutitle "[gungame] config"
#define activity 1
#define ADMIN_LEVEL ADMIN_KICK
public plugin_init()
{
  
register_plugin("menu gungame""1.00""leonel");
  
register_concmd(menucmd"cmd_menucmd"ADMIN_LEVELmenudescription);
}
public 
cmd_menucmd(idlevelcid)
{
  if(
cmd_access(idlevelcid0))
  {
    new 
menu menu_create(menutitle"handle_menucmd");
    
menu_additem(menu"Abilitar deathmath""1"0);
    
menu_additem(menu"Desabilitar deathmath""1"0);
    
menu_additem(menu"Abilitar modo por time""1"0);
    
menu_additem(menu"Mesabilitar modo por time""1"0);
    
menu_additem(menu"Max de ping 150""1"0);
    
menu_additem(menu"Max de ping 200""1"0);
    
menu_additem(menu"Max de ping 250 ""1"0);
    
menu_additem(menu"Max de ping 300""1"0);
    
menu_additem(menu"Ativar gungame""1"0);
    
menu_additem(menu"Desativar gungame""1"0);    
    
menu_additem(menu"Restart ""1"0);
    
menu_display(idmenu0);
  }
  return 
PLUGIN_HANDLED;
}
public 
handle_menucmd(idmenuitem)
{
  if(
item == MENU_EXIT)
  {
    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;
  }
  else
  {
    switch(
item)
    {
      case 
0:
      {
        
server_cmd("gg_dm 1");
        
#if activity == 1
          
client_print(0print_chat"[pro.evolution] Modo Deathmath");
        
#endif
      
}
      case 
1:
      {
        
server_cmd("gg_dm 0");
        
#if activity == 1
          
client_print(0print_chat"[pro.evolution] Modo DeathMath Desativado");
        
#endif
      
}
      case 
2:
      {
        
server_cmd("gg_teamplay 1");
        
#if activity == 1
          
client_print(0print_chat"[pro.evolution] Modo Jogar Por Time");
        
#endif
      
}
      case 
3:
      {
        
server_cmd("gg_teamplay 0);
        #if activity == 1
          client_print(0, print_chat, "
[pro.evolutionModo Jogar Por Time Desativado");
        #endif
      }
      case 4:
      {
        server_cmd("
amx_hpk 150");
        #if activity == 1
          client_print(0, print_chat, "
[pro.evolutionJogadores com ping maior que 150 serao kikados!");
        #endif
      }
      case 5:
      {
        server_cmd("
amx_hpk 200");
        #if activity == 1
          client_print(0, print_chat, "
[pro.evolutionJogadores com ping maior que 200 serao kikados!");
        #endif 
      }
      case 6:
      {
        server_cmd("
amx_hpk 250");
        #if activity == 1
          client_print(0, print_chat, "
[pro.evolutionJogadores com ping maior que 250 serao kikados");
        #endif
      }
      case 7:
      {
        server_cmd("
amx_hpk 300");
        #if activity == 1
          client_print(0, print_chat, "
[pro.evolutionJogadores com ping maior que 300 serao kikados");
        #endif
      }
      case 8:
      {
        server_cmd("
gg_enabled 1");
        #if activity == 1
          client_print(0, print_chat, "
[pro.evolutiongungame mod ativado!!!!");
        #endif
      }
      case 9:
      {
        server_cmd("
gg_enabled 0");
        #if activity == 1
          client_print(0, print_chat, "
[pro.evolutiongungame mod desativado...");
        #endif 
      }
      case 10:
      {
        server_cmd("
sv_restart 1");
        #if activity == 1
          client_print(0, print_chat, "
[pro.evolution####Restart###");
        #endif
      
}
    }
  }
  return 
PLUGIN_HANDLED

is a menu style amxmodmenu so that the configuration of the server so that it gives error copilar
could provide an edit for me

sorry my english xd

Bugsy 06-13-2009 18:11

Re: copiler error
 
Code:
      case 3:       {         server_cmd("gg_teamplay 0);        #if activity == 1          client_print(0, print_chat, "[pro.evolution] Modo Jogar Por Time Desativado");        #endif      }

Should be

PHP Code:

server_cmd("gg_teamplay 0"); 


pro.evolution | leonel 06-13-2009 18:24

Re: copiler error
 
I did not get this error you!

Drak 06-13-2009 23:28

Re: copiler error
 
What. I'm usually good at translating dumb posts. But you got me.
What the dick man.

fysiks 06-13-2009 23:52

Re: copiler error
 
I never understood why people can't just fix their own errors. But I guess people are using the webcompiler which doesn't show the errors. People need to start compiling locally then we wouldn't have so many pointless threads.


All times are GMT -4. The time now is 13:52.

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