Raised This Month: $ Target: $400
 0% 

copiler error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pro.evolution | leonel
Junior Member
Join Date: May 2009
Location: brazil!!!!
Old 06-13-2009 , 18:10   copiler error
Reply With Quote #1

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
pro.evolution | leonel is offline
Send a message via MSN to pro.evolution | leonel
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-13-2009 , 18:11   Re: copiler error
Reply With Quote #2

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"); 
__________________
Bugsy is offline
pro.evolution | leonel
Junior Member
Join Date: May 2009
Location: brazil!!!!
Old 06-13-2009 , 18:24   Re: copiler error
Reply With Quote #3

I did not get this error you!
pro.evolution | leonel is offline
Send a message via MSN to pro.evolution | leonel
Drak
Veteran Member
Join Date: Jul 2005
Old 06-13-2009 , 23:28   Re: copiler error
Reply With Quote #4

What. I'm usually good at translating dumb posts. But you got me.
What the dick man.
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-13-2009 , 23:52   Re: copiler error
Reply With Quote #5

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.
__________________
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 13:52.


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