Raised This Month: $ Target: $400
 0% 

What is wrong with my code?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EpicKiller
Senior Member
Join Date: Jun 2014
Location: Constanta, Romania
Old 07-26-2014 , 07:54   What is wrong with my code?
Reply With Quote #1

Hello. This plugin is supposed to display the specified menu at player spawn, if the player has the defined access flag.
Well... it does not display the menu.

Thank you for your help!

Spoiler
EpicKiller is offline
Send a message via Yahoo to EpicKiller Send a message via Skype™ to EpicKiller
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-26-2014 , 08:20   Re: What is wrong with my code?
Reply With Quote #2

Use descriptive topic titles.... I just tested your code and it works.
HamletEagle is offline
EpicKiller
Senior Member
Join Date: Jun 2014
Location: Constanta, Romania
Old 07-26-2014 , 08:32   Re: What is wrong with my code?
Reply With Quote #3

Sorry, I tried, but not knowing what should I ask for, I had no idea about a descriptive title. And... ok, thank you then.
EpicKiller is offline
Send a message via Yahoo to EpicKiller Send a message via Skype™ to EpicKiller
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-26-2014 , 09:00   Re: What is wrong with my code?
Reply With Quote #4

Quote:
Originally Posted by EpicKiller View Post
Sorry, I tried, but not knowing what should I ask for, I had no idea about a descriptive title. And... ok, thank you then.
So, did you find the reason why your code was not working for you ?

Last edited by HamletEagle; 07-26-2014 at 09:00.
HamletEagle is offline
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 07-26-2014 , 13:09   Re: What is wrong with my code?
Reply With Quote #5

PHP Code:
        case 1:
        {
            
give_item(id"weapon_ak47");
            
cs_set_user_bpammo(idCSW_AK4790);
            
give_item(id"weapon_deagle");
            
cs_set_user_bpammo(idCSW_AK4735);
            
give_item(id"weapon_hegrenade");
        } 

PHP Code:
        case 1:
        {
            
give_item(id"weapon_ak47");
            
cs_set_user_bpammo(idCSW_AK4790);
            
give_item(id"weapon_deagle");
            
cs_set_user_bpammo(idCSW_DEAGLE35);
            
give_item(id"weapon_hegrenade");
        } 
__________________
Eagle07 is offline
EpicKiller
Senior Member
Join Date: Jun 2014
Location: Constanta, Romania
Old 07-26-2014 , 16:58   Re: What is wrong with my code?
Reply With Quote #6

Quote:
Originally Posted by Eagle07 View Post
PHP Code:
        case 1:
        {
            
give_item(id"weapon_ak47");
            
cs_set_user_bpammo(idCSW_AK4790);
            
give_item(id"weapon_deagle");
            
cs_set_user_bpammo(idCSW_AK4735);
            
give_item(id"weapon_hegrenade");
        } 

PHP Code:
        case 1:
        {
            
give_item(id"weapon_ak47");
            
cs_set_user_bpammo(idCSW_AK4790);
            
give_item(id"weapon_deagle");
            
cs_set_user_bpammo(idCSW_DEAGLE35);
            
give_item(id"weapon_hegrenade");
        } 
Oh, thank you for that... I guess I skipped that mistake out of not being careful enough.

Quote:
Originally Posted by Eagle07 View Post
and not give_item(id, "weapon_flashgrenade");
----
weapon_flashgrenade

weapon_flashbang
Thanks, I checked a list of those these days... I aparently messed this one up.

Quote:
Originally Posted by Flick3rR View Post
Aaand, no steam equals to no support in this forum.
Don't worry, I am administrating several servers. One of them is running dproto, the other 2 of them are not.

Quote:
Originally Posted by HamletEagle View Post
So, did you find the reason why your code was not working for you ?
No... I can't seem to find out what's the catch...
EpicKiller is offline
Send a message via Yahoo to EpicKiller Send a message via Skype™ to EpicKiller
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 07-26-2014 , 13:11   Re: What is wrong with my code?
Reply With Quote #7

and not give_item(id, "weapon_flashgrenade");
----
weapon_flashgrenade

weapon_flashbang
__________________
Eagle07 is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 07-26-2014 , 15:13   Re: What is wrong with my code?
Reply With Quote #8

Aaand, no steam equals to no support in this forum.
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 07-26-2014 , 17:09   Re: What is wrong with my code?
Reply With Quote #9

Your Problem Fixed ?
__________________
Eagle07 is offline
EpicKiller
Senior Member
Join Date: Jun 2014
Location: Constanta, Romania
Old 07-27-2014 , 15:14   Re: What is wrong with my code?
Reply With Quote #10

Quote:
Originally Posted by Eagle07 View Post
Your Problem Fixed ?
Teoreticaly, yeah, because I don't need this plugin anymore. Reffering strictly to the functionality of this code, no, my problem's still there. But it's fine, I won't need it anymore.

Thank you very much for your help!

Last edited by EpicKiller; 07-27-2014 at 15:24.
EpicKiller is offline
Send a message via Yahoo to EpicKiller Send a message via Skype™ to EpicKiller
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:08.


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