Raised This Month: $ Target: $400
 0% 

Problem with weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bazhenov93
Veteran Member
Join Date: Oct 2010
Old 04-14-2012 , 19:11   Problem with weapons
Reply With Quote #1

I made a plugin for my sv, but it does not work

Can anyone check it and tell me where is the error? thanks,,,,
Attached Files
File Type: sma Get Plugin or Get Source (weapons_menu.sma - 585 views - 14.4 KB)

Last edited by bazhenov93; 04-15-2012 at 16:42.
bazhenov93 is offline
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 04-14-2012 , 19:22   Re: Problem with weapons
Reply With Quote #2

please.. read more tutorials because you don't know what are you doing
__________________

www.amxmodx-es.com

Steam: Luchokoldo

Last edited by rak; 04-14-2012 at 19:28.
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 04-14-2012 , 19:24   Re: Problem with weapons
Reply With Quote #3

This could be done in 50 lines or less.
__________________

Last edited by Neeeeeeeeeel.-; 04-14-2012 at 19:24.
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
bazhenov93
Veteran Member
Join Date: Oct 2010
Old 04-14-2012 , 19:26   Re: Problem with weapons
Reply With Quote #4

How? make an example.. and i will learn^^
bazhenov93 is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 04-14-2012 , 19:30   Re: Problem with weapons
Reply With Quote #5

Read about loops and constants
And also about identation...
__________________

Last edited by Neeeeeeeeeel.-; 04-14-2012 at 19:31.
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 04-14-2012 , 21:33   Re: Problem with weapons
Reply With Quote #6

I would suggest you read some tutorials or look into some simple plugins and get a feel for how things are done.

You can find a whole forum based on Code Snippets/Tutorials by clicking here.

If you specifically need help with menus, look here.

And a guide to searching the forums here.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
StickP0le
Senior Member
Join Date: Jan 2010
Location: cuantocabron.com
Old 04-15-2012 , 00:08   Re: Problem with weapons
Reply With Quote #7

omfg, please read tutorials before trying to make a plugin what is this supossed to mean
Code:
 switch(key)     {     case 'a':     {     switch( key )     {
__________________
Steam: stickp0le
StickP0le is offline
StickP0le
Senior Member
Join Date: Jan 2010
Location: cuantocabron.com
Old 04-15-2012 , 00:30   Re: Problem with weapons
Reply With Quote #8

iŽll show you an example
Code:
 new const DATA[][] = { "P228", "SCOUT", "XM1014", "MAC10", "AUG", "ELITE", "FIVESEVEN", "UMP45", "SG550",     "GALIL", "FAMAS", "USP", "GLOCK18", "AWP", "MP5NAVY", "M249", "M3", "M4A1", "TMP", "G3SG1", "DEAGLE", "AK47", "P90", "HE GRENADE", "FLASH GRENADE", "SMOKE GRENADE" } // ================================================================================================= // weapons menu // ================================================================================================= public wpmenu(id) {     static Item[64], num[27]     formatex(Item, charsmax(Item), "\d...................^n\rWEAPONS MENU^n\w>>>>>>>>> \d")     new menu = menu_create(Item, "wpmenu_handler")         for (new i = 0; i > 26; i++)     {         num_to_str(i, num, 26)         menu_additem(menu, DATA[i], num)     }         menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)     menu_display(id, menu) }
you have to use your head and see how to optimize all the code with this example
__________________
Steam: stickp0le
StickP0le is offline
bazhenov93
Veteran Member
Join Date: Oct 2010
Old 04-15-2012 , 16:39   Re: Problem with weapons
Reply With Quote #9

Quote:
Originally Posted by StickP0le View Post
omfg, please read tutorials before trying to make a plugin what is this supossed to mean Code:
Code:
switch(key)
    {
    case 'a':
    {
    switch( key )
    {
I readed a tutorial here http://forums.alliedmods.net/showthr...4#MultiHandler

ok.. and what's wrong now?
Attached Files
File Type: sma Get Plugin or Get Source (weapons_menu.sma - 517 views - 12.3 KB)

Last edited by bazhenov93; 04-16-2012 at 01:54.
bazhenov93 is offline
Reply


Thread Tools
Display Modes

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 07:50.


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