Raised This Month: $ Target: $400
 0% 

1 Error for my DeathMatch Class


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
caked
Member
Join Date: Dec 2012
Old 12-29-2012 , 05:16   1 Error for my DeathMatch Class
Reply With Quote #1

1 Error saying,
Error 36: Empty Statement

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#include <engine>
#include <fakemeta>
#include <fakemeta_util>
#include <colorchat>
 
 
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
 
 
public plugin_init() {
 

 
 
RegisterHam(Ham_Spawn"player""DeathMatchClassMenu"1); 
}  
 
 
register_plugin(PLUGINVERSIONAUTHOR)
register_clcmd"say /class"
"DeathMatchClassMenu" );
}
public 
DeathMatchClassMenu(id)
{
new 
menu 
menu_create("\rDeathMatch Class Menu:^n\yMade By caked."
"menu_handler");
 
 
menu_additem(menu"\wM4a1 \r[Deagle]""1"0);
menu_additem(menu"\wAk47 \r[Usp]""2"0);
menu_additem(menu"\wSniper \r[Deagle]""3"0);
menu_additem(menu"\wM249 \r[Five-Seven]""4"0);
menu_additem(menu"\wMp5 \r[Glock]""5"0);
menu_additem(menu"\wAug \r[Deagle]""6"0);
menu_additem(menu"\wFamas \r[Usp]""7"0);
menu_additem(menu"\wScout \r[Five-Seven]""8"0);
menu_additem(menu"\wGalil \r[Glock]""9"0);
menu_additem(menu"\wShotgun \r[Deagle]""10"0);
 
 
menu_setprop(menuMPROP_EXITMEXIT_ALL);
menu_display(idmenu0);
 
 
}
public 
menu_handler(idmenuitem)
{
if( 
item == MENU_EXIT 
)
{
menu_destroy(menu);
return 
PLUGIN_HANDLED;
 
 
}
new 
data[6], iName[64];
new 
accesscallback;
 
 
menu_item_getinfo(menuitemaccessdata,5iName63callback);
new 
key str_to_num(data);
switch(
key)
 
 
{
case 
1:
{
ColorChat(idRED,"^x04[ DeathMatch ]^x01 You Have Chosen The Class: ^x04M4a1/Deagle");
give_item(id"weapon_m4a1");
give_item(id"weapon_deagle");
cs_set_user_bpammoidCSW_M4A1200 );
cs_set_user_bpammoidCSW_DEAGLE200 );
}
case 
2:
{
ColorChat(idRED,"^x04[ DeathMatch ]^x01 You Have Chosen The Class: ^x04Ak47/Usp");
give_item(id"weapon_ak47")
give_item(id"weapon_usp")
cs_set_user_bpammoidCSW_AK47200 );
cs_set_user_bpammoidCSW_USP200 );
}
case 
3
{
ColorChat(idRED,"^x04[ DeathMatch ]^x01 You Have Chosen The Class: ^x04Sniper/Deagle");
give_item(id"weapon_awp");
give_item(id"weapon_deagle");
cs_set_user_bpammoidCSW_AWP200 );
cs_set_user_bpammoidCSW_DEAGLE200 );
}
case 
4:
{
ColorChat(idRED,"^x04[ DeathMatch ]^x01 You Have Chosen The Class: ^x04M249/Five-Seven");
give_item(id"weapon_m249");
give_item(id"weapon_fiveseven");;
cs_set_user_bpammoidCSW_M249200 );
cs_set_user_bpammoidCSW_FIVESEVEN200 );
}
case 
5:

 
ColorChat(idRED,"^x04[ DeathMatch ]^x01 You Have Chosen The Class: ^x04Mp5/Glock");
give_item(id"weapon_mp5navy");
give_item(id"weapon_glock18");
cs_set_user_bpammoidCSW_MP5NAVY200 );
cs_set_user_bpammoidCSW_GLOCK18200 );
}
case 
6:
{
ColorChat(idRED,"^x04[ DeathMatch ]^x01 You Have Chosen The Class: ^x04Aug/Deagle");
give_item(id"weapon_aug");
give_item(id"weapon_deagle");
cs_set_user_bpammoidCSW_AUG200 );
cs_set_user_bpammoidCSW_DEAGLE200 );
}
case 
7:
{
ColorChat(idRED,"^x04[ DeathMatch ]^x01 You Have Chosen The Class: ^x04Famas/Usp");
give_item(id"weapon_famas");
give_item(id"weapon_usp");
cs_set_user_bpammoidCSW_FAMAS200 );
cs_set_user_bpammoidCSW_USP200 );
}
case 
8:
{
ColorChat(idRED,"^x04[ DeathMatch ]^x01 You Have Chosen The Class: ^x04Scout/Five-Seven");
give_item(id"weapon_scout");
give_item(id"weapon_fiveseven");
cs_set_user_bpammoidCSW_SCOUT200 );
cs_set_user_bpammoidCSW_FIVESEVEN200 );
}
case 
9:
{
ColorChat(idRED,"^x04[ DeathMatch ]^x01 You Have Chosen The Class: ^x04Galil/Glock");
give_item(id"weapon_galil");
give_item(id"weapon_glock18");
cs_set_user_bpammoidCSW_GALIL200 );
cs_set_user_bpammoidCSW_GLOCK18200 );
}
case 
10:
{
ColorChat(idRED,"^x04[ DeathMatch ]^x01 You Have Chosen The Class: ^x04Shotgun/Deagle");
give_item(id"weapon_famas");
give_item(id"weapon_usp");
cs_set_user_bpammoidCSW_XM1014200 );
cs_set_user_bpammoidCSW_DEAGLE200 );
}
}


Last edited by caked; 12-29-2012 at 05:20.
caked is offline
Old 12-29-2012, 19:28
caked
This message has been deleted by YamiKaitou. Reason: wait 14 days before you bump
AngeIII
Senior Member
Join Date: Sep 2007
Location: Latvia
Old 01-02-2013 , 15:49   Re: 1 Error for my DeathMatch Class
Reply With Quote #2

PHP Code:
public plugin_init() {
 

 
 
RegisterHam(Ham_Spawn"player""DeathMatchClassMenu"1); 
}  
 
 
register_plugin(PLUGINVERSIONAUTHOR)
register_clcmd"say /class"
"DeathMatchClassMenu" );



check {} ..

init
{
...
...
}
PHP Code:
public plugin_init() {
RegisterHam(Ham_Spawn"player""DeathMatchClassMenu"1);  
register_plugin(PLUGINVERSIONAUTHOR)
register_clcmd"say /class""DeathMatchClassMenu" );

__________________
skype: pavle_ivanof
-=ThQ=-
PRIVATE SUPPORT = PAID SUPPORT

Last edited by AngeIII; 01-02-2013 at 15:50.
AngeIII is offline
Send a message via Skype™ to AngeIII
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:41.


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