Raised This Month: $ Target: $400
 0% 

Weapon Give Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 01-02-2007 , 14:16   Weapon Give Help
Reply With Quote #1

Code:
public PressedGunMenu1(id, key)
{
    switch(key)
    {
        case 0:
            give_item(id,"weapon_glock18")
        
        case 1:
            give_item(id,"weapon_usp")
        
        case 2:
            give_item(id,"weapon_p228")
        
        case 3:
            give_item(id,"weapon_deagle")
        
        case 4:
            give_item(id,"weapon_fiveseven")
        
        case 5:
            give_item(id,"weapon_elite")
    }
    
}
Isnt working, dunno why. Can anyone help?

The whole source code is attached.

Thanks!
Attached Files
File Type: sma Get Plugin or Get Source (SkillTracker.sma - 850 views - 4.6 KB)
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
allenwr
Veteran Member
Join Date: Jan 2006
Location: The place where the karm
Old 01-02-2007 , 16:59   Re: Weapon Give Help
Reply With Quote #2

This is what i found in one of my older plugins... im not completely sure, but you can try this:
PHP Code:
switch(key) {
          case 
0: {
                    
give_item(id,"weapon_glock18")
          }

__________________
Don't ever place an order with Vee Servers. This is why.
allenwr is offline
Send a message via ICQ to allenwr Send a message via Yahoo to allenwr
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 01-02-2007 , 17:21   Re: Weapon Give Help
Reply With Quote #3

Whats the difference? Ill try it, thanks.

Hey, it actually works, thanks a lot.
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."

Last edited by soccdoodcss; 01-02-2007 at 17:50.
soccdoodcss is offline
Send a message via AIM to soccdoodcss
Old 01-02-2007, 18:27
allenwr
This message has been deleted by allenwr.
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 22:25.


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