AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   What is wrong with my code? (https://forums.alliedmods.net/showthread.php?t=244957)

EpicKiller 07-26-2014 07:54

What is wrong with my code?
 
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

HamletEagle 07-26-2014 08:20

Re: What is wrong with my code?
 
Use descriptive topic titles.... I just tested your code and it works.

EpicKiller 07-26-2014 08:32

Re: What is wrong with my code?
 
Sorry, I tried, but not knowing what should I ask for, I had no idea about a descriptive title. And... ok, thank you then.

HamletEagle 07-26-2014 09:00

Re: What is wrong with my code?
 
Quote:

Originally Posted by EpicKiller (Post 2174122)
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 ?

Eagle07 07-26-2014 13:09

Re: What is wrong with my code?
 
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");
        } 

:arrow:
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 07-26-2014 13:11

Re: What is wrong with my code?
 
and not give_item(id, "weapon_flashgrenade");
----
weapon_flashgrenade
:arrow:
weapon_flashbang

Flick3rR 07-26-2014 15:13

Re: What is wrong with my code?
 
Aaand, no steam equals to no support in this forum.

EpicKiller 07-26-2014 16:58

Re: What is wrong with my code?
 
Quote:

Originally Posted by Eagle07 (Post 2174207)
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");
        } 

:arrow:
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 (Post 2174210)
and not give_item(id, "weapon_flashgrenade");
----
weapon_flashgrenade
:arrow:
weapon_flashbang

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

Quote:

Originally Posted by Flick3rR (Post 2174284)
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 (Post 2174128)
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...

Eagle07 07-26-2014 17:09

Re: What is wrong with my code?
 
Your Problem Fixed ?

EpicKiller 07-27-2014 15:14

Re: What is wrong with my code?
 
Quote:

Originally Posted by Eagle07 (Post 2174317)
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!


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

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