This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[Req] Fix error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sanjay Singh
Veteran Member
Join Date: Sep 2016
Old 11-17-2016 , 09:38   [Req] Fix error
Reply With Quote #1

This plugin isnt wrking i dont know why but its compiling, plz can someone fix it?
PHP Code:
/* Plugin generated by AMXX-Studio */ 

#include <amxmodx> 
#include <engine>  
#include <fun> 
#include <cstrike> 
#include <hamsandwich> 
#include <dhudmessage> 

/* credits: 
Flicker For Random Pistols 
v3x For amxx menu generator 
Arkshine For disable buy 
zmd94 For Give me The Code by Arkshine 
Exolent[jNr] for random colors 
*/ 

enum _:g_eWeaponData 

_NameForChat[32], 
_WeaponName[32], 
_Ammo
_CSW 


enum _:g_eWeaponTypes 




new const 
g_szSecondary[][g_eWeaponData]= 

{
"Glock18",     "weapon_glock18",     240,     CSW_GLOCK18}, 
{
"Usp",     "weapon_usp",        240,     CSW_USP}, 
{
"P228",     "weapon_p228",        240,     CSW_P228}, 
{
"Dual Elites""weapon_elite",     240,     CSW_ELITE}, 
{
"Fiveseven",     "weapon_fiveseven",    240,     CSW_FIVESEVEN}, 
{
"Deagle",     "weapon_deagle",     240,     CSW_DEAGLE


new 
g_WpnID[g_eWeaponTypes
new 
EnabledCvar 

public plugin_init() { 
register_plugin("Special Round""Version""ConstentinoN"
register_clcmd("amx_sprmenu""SprMenuShow"
register_clcmd("say /spr""SprMenuShow"

EnabledCvar register_cvar("amx_enable""1")// Enable/Disable Plugin 


public 
SprMenuShow(id

if(
get_pcvar_numEnabledCvar ) && get_user_flags(id) & ADMIN_ALL

new 
menu menu_create("Special Round""SprMenuHandler")  
menu_additem(menu"Knife round""1"0)  
menu_additem(menu"grenade+knife round""2"0)  
menu_additem(menu"shotgun round""3"0)  
menu_additem(menu"deagle round""4"0)  
menu_additem(menu"awp round""5"0)  
menu_additem(menu"random pistul round""6"0)  
menu_additem(menu"m4a1 round""7"0)  
menu_additem(menu"ak-47 round""8"0)  
menu_additem(menu"tmp round""9"0)  
menu_additem(menu"Unlimated Grenades round""10"0)  
menu_setprop(menuMPROP_EXITMEXIT_ALL)  

menu_display(idmenu0)  



public 
SprMenuHandler(idclientmenuitem

if( 
item == MENU_EXIT 

menu_destroy(menu); 
return 
PLUGIN_HANDLED

new 
data[6], szName[33];  
new 
accescallback
menu_item_getinfo(menuitemaccesdata,charsmax(data), szName,charsmax(szName), callback)  
new 
key str_to_num(data);  
switch(
key)  

case 
1: {  
hideBuyIcon() 
strip_user_weapons(client)  
give_item(client"weapon_knife"
client_print(0print_chat"[SPR] Admin Choose Knife Round!"

case 
2: { 
hideBuyIcon 
strip_user_weapons
(client)  
give_item(client"weapon_knife"
give_item(client"weapon_hegrenade"
give_item(client"weapon_flashbang"
give_item(client"weapon_flashbang"
give_item(client"weapon_smokegrenade")   
client_print(0print_chat"[SPR] Admin Choose Grenades And Knife Round!"

case 
3: { 
hideBuyIcon 
strip_user_weapons
(client)  
give_item(client"weapon_m3"
give_item(client"weapon_xm1014"
cs_set_user_bpammo(client,CSW_M3,240)   
cs_set_user_bpammo(client,CSW_XM1014,240)  
client_print(0print_chat"[SPR] Admin Choose Shotgun Round!")  

case 
4: { 
hideBuyIcon 
strip_user_weapons
(client)  
give_item(client"weapon_deagle"
cs_set_user_bpammo(client,CSW_DEAGLE,240)   
client_print(0print_chat"[SPR] Admin Choose Deagle Round!"

case 
5: { 
hideBuyIcon 
strip_user_weapons
(client)  
give_item(client"weapon_awp"
cs_set_user_bpammo(client,CSW_AWP,240)   
client_print(0print_chat"[SPR] Admin Choose Awp Round!"

case 
6: { 
hideBuyIcon 
strip_user_weapons
(client)  
g_WpnID[S] = random_num(1charsmax(g_szSecondary)) 
give_item(clientg_szSecondary[g_WpnID[S]][_WeaponName]) 
cs_set_user_bpammo(clientg_szSecondary[g_WpnID[S]][_CSW], g_szSecondary[g_WpnID[S]][_Ammo]) 
client_print(0print_chat"[SPR] Admin Choose Random Pistols Round!"

case 
7: { 
hideBuyIcon 
strip_user_weapons
(client)  
give_item(client"weapon_m4a1"
cs_set_user_bpammo(client,CSW_M4A1,240
client_print(0print_chat"[SPR] Admin Choose M4A1 Round!")  

case 
8: { 
hideBuyIcon 
strip_user_weapons
(client)  
give_item(client"weapon_ak47"
cs_set_user_bpammo(client,CSW_AK47,240)  
client_print(0print_chat"[SPR] Admin Choose AK47 Round!"

case 
9: { 
hideBuyIcon 
strip_user_weapons
(client)  
give_item(client"weapon_tmp"
cs_set_user_bpammo(client,CSW_TMP,240)  
client_print(0print_chat"[SPR] Admin Choose Tmp Round!"

case 
10: { 
hideBuyIcon 
strip_user_weapons
(client)  
give_item(client"weapon_hegrenade"
give_item(client"weapon_flashbang"
give_item(client"weapon_flashbang"
give_item(client"weapon_smokegrenade"
cs_set_user_bpammo(client,CSW_HEGRENADE,240)   
cs_set_user_bpammo(client,CSW_FLASHBANG,240)   
cs_set_user_bpammo(client,CSW_SMOKEGRENADE,240)   
client_print(0print_chat"[SPR] Admin Choose Unlimated Grenades Round!"


set_dhudmessage(random(256), random(256), random(256)) 
show_dhudmessage(client"Liveee^nPlay Hard, Go Pro"
menu_destroy(menu); 
return 
PLUGIN_HANDLED
}  

hideBuyIcon() 

new const 
szClassnameBuy[] = "func_buyzone" 
remove_entity_name(szClassnameBuy
new 
ent create_entity(szClassnameBuy
entity_set_origin(entFloat:{8192.08192.08192.0}) 
entity_set_int(entEV_INT_solidSOLID_NOT

__________________

Last edited by Sanjay Singh; 11-17-2016 at 09:39.
Sanjay Singh is offline
Send a message via AIM to Sanjay Singh
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 11-17-2016 , 10:25   Re: [Req] Fix error
Reply With Quote #2

Error logs please
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Sanjay Singh
Veteran Member
Join Date: Sep 2016
Old 11-17-2016 , 20:03   Re: [Req] Fix error
Reply With Quote #3

Error log of server?
__________________
Sanjay Singh is offline
Send a message via AIM to Sanjay Singh
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-18-2016 , 04:54   Re: [Req] Fix error
Reply With Quote #4

No, from your microwave.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Old 11-18-2016, 05:08
shehzad1234
This message has been deleted by shehzad1234. Reason: Sorry plugin not working :(
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 11-18-2016 , 05:18   Re: [Req] Fix error
Reply With Quote #5

Quote:
Originally Posted by OciXCrom View Post
No, from your microwave.
Those questions sometimes...
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-18-2016 , 08:12   Re: [Req] Fix error
Reply With Quote #6

Quote:
Originally Posted by Napoleon_be View Post
Those questions sometimes...
Nevermind the questions, yaar is back.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Sanjay Singh
Veteran Member
Join Date: Sep 2016
Old 11-18-2016 , 10:49   Re: [Req] Fix error
Reply With Quote #7

@oxicrom stop joking here -_-. this plugin compiles but not working on server
__________________
Sanjay Singh is offline
Send a message via AIM to Sanjay Singh
Artifact
Veteran Member
Join Date: Jul 2010
Old 11-18-2016 , 12:55   Re: [Req] Fix error
Reply With Quote #8

Quote:
Originally Posted by Sanjay Singh View Post
@oxicrom stop joking here -_-. this plugin compiles but not working on server
What not working? What is debug log? We need to spend half hour of out time to find something because you can not put debug after your plugin name in plugins.ini file.
__________________
Artifact is offline
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 11-18-2016 , 14:43   Re: [Req] Fix error
Reply With Quote #9

[AMXX] Plugin file open error (plugin "sprmenu.amxx") this error

Last edited by shehzad1234; 11-18-2016 at 14:44.
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-18-2016 , 17:17   Re: [Req] Fix error
Reply With Quote #10

Good job. That means you didn't add the plugin in your microwave (plugins folder).
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 03:49.


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