Raised This Month: $ Target: $400
 0% 

what problerum?? this coding???


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lhrcap
Senior Member
Join Date: Dec 2006
Old 02-10-2007 , 15:32   what problerum?? this coding???
Reply With Quote #1

Code:
#include <amxmodx>
#define Keysmenu_1 (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)// Keys: 123450
#define Keysmenu_2 (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)// Keys: 1234560
#define Keysmenu_3 (1<<0)|(1<<1)|(1<<2)// Keys: 120
#define Keysmenu_4 (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)// Keys: 123450
#define Keysmenu_5 (1<<0)|(1<<1)|(1<<2)// Keys: 120
#define Keysmenu_6 (1<<0)|(1<<1)// Keys: 10
public plugin_init() {
    register_plugin("Making_menus","1.0","Fire")
    register_cvar("making_menu","1")
    register_clcmd( "menu_1","Showmenu_1")
    register_clcmd( "menu_2","Showmenu_2")
    register_clcmd( "menu_3","Showmenu_3")
    register_clcmd( "menu_4","Showmenu_4")
    register_clcmd( "menu_5","Showmenu_5")
    register_clcmd( "menu_6","Showmenu_6")
    register_menucmd(register_menuid("menu_1"), Keysmenu_1, "Pressedmenu_1")
    register_menucmd(register_menuid("menu_2"), Keysmenu_2, "Pressedmenu_2")
    register_menucmd(register_menuid("menu_3"), Keysmenu_3, "Pressedmenu_3")
    register_menucmd(register_menuid("menu_4"), Keysmenu_4, "Pressedmenu_4")
    register_menucmd(register_menuid("menu_5"), Keysmenu_5, "Pressedmenu_5")
    register_menucmd(register_menuid("menu_6"), Keysmenu_6, "Pressedmenu_6")
}
public Showmenu_1(id) {
    show_menu(id, Keysmenu_1, "1: Pistol^n2: Shot Guns^n3: Submachin Gun^n4: Rifles^n5: Other Weapons^n0: Exit^n^n", -1, "menu_1") // Display menu
}
public Pressedmenu_1(id, key) {
    /* Menu:
    * 1: Pistol
    * 2: Shot Guns
    * 3: Submachin Gun
    * 4: Rifles
    * 5: Other Weapons
    * 0: exit
    */
 
    switch (key) {
        case 0: { // client_cmd(id,"menu_2")
 return PLUGIN_CONTINUE 
 
        }
        case 1: { // client_cmd(id,"menu_3")
 return PLUGIN_CONTINUE
 
        }
        case 2: { // client_cmd(id,"menu_4")
 return PLUGIN_CONTINUE
 
        }
        case 3: { // client_cmd(id,"menu_5")
 return PLUGIN_CONTINUE
 
        }
        case 4: { // client_cmd(id,"menu_6")
 return PLUGIN_CONTINUE
        }
 
        case 5:   
 
    return PLUGIN_HANDLED 
}
public Showmenu_2(id) {
    show_menu(id, Keysmenu_2, "1: glock^n2: usp^n3: p228^n4: deagle^n5: elites^n6: fn57^n0: Back^n", -1, "menu_2") // Display menu
}
public Pressedmenu_2(id, key) {
    /* Menu:
    * 1: glock
    * 2: usp
    * 3: p228
    * 4: deagle
    * 5: elites
    * 6: fn57
    * 0: Back
    */
 
    switch (key) {
        case 0: { // client_cmd(id,"glock")
 return PLUGIN_CONTINUE
 
        }
        case 1: { // client_cmd(id,"usp")
 return PLUGIN_CONTINUE
 
        }
        case 2: { // client_cmd(id,"p228")
 return PLUGIN_CONTINUE
 
        }
        case 3: { // client_cmd(id,"deagle")
 return PLUGIN_CONTINUE
 
        }
        case 4: { // client_cmd(id,"elites")
 return PLUGIN_CONTINUE
        }
        case 5: { // client_cmd(id,"fn57")
 return PLUGIN_CONTINUE
 
        }
        case 6: { client_cmd(id,"menu_1")
 return PLUGIN_CONTINUE
 
        }
 
    return PLUGIN_HANDLED
    }
}
public Showmenu_4(id) {
    show_menu(id, Keysmenu_4, "1: TMP^n2: MP5 NAVY^n3: UMP45^n4: ^n4: MAC10^n5: P90^n0: Back^n", -1, "menu_4") // Display menu
}
public Pressedmenu_4(id, key) {
    /* Menu:
    * 1: TMP
    * 2: MP5 navy
    * 3: ump
    * 4: MAC10
    * 5: p90
    * 0: Back
    */
 
    switch (key) {
        case 0: { // client_cmd(id,"tmp")
 return PLUGIN_CONTINUE
 
        }
        case 1: { // client_cmd(id,"mp5")
 return PLUGIN_CONTINUE
 
        }
        case 2: { // client_cmd(id,"ump45")
 return PLUGIN_CONTINUE
 
        }
        case 3: { // client_cmd(id,"mac10")
 return PLUGIN_CONTINUE
 
        }
        case 4: { // client_cmd(id,"p90")
 return PLUGIN_CONTINUE
        }
 
 
 
        case 6: { client_cmd(id,"menu_1")
 return PLUGIN_CONTINUE
 
        }
 
      }
}
public Showmenu_3(id) {
    show_menu(id, Keysmenu_3, "1: M3^n2: XM1014^n3: Back^n", -1, "menu_3") // Display menu
}
public Pressedmenu_3(id, key) {
    /* Menu:
    * 1: M3
    * 2: XM1014
    * 0: Back
    */
 
    switch (key) {
        case 0: { // client_cmd(id,"m3")
 return PLUGIN_CONTINUE
 
        }
        case 1: { // client_cmd(id,"xm1014")
 return PLUGIN_CONTINUE
 
        }
        case 3: { // client_cmd(id,"menu_1")
 return PLUGIN_CONTINUE
        }
 
        }
}
public Showmenu_5(id) {
    show_menu(id, Keysmenu_5, "1: Colt Carbine M4A1^n2: AK-47^n3: Back^n", -1, "menu_5") // Display menu
}
public Pressedmenu_5(id, key) {
    /* Menu:
    * 1: M4A1
    * 2: AK-47
    * 0: Back
    */
 
    switch (key) {
        case 0: { // client_cmd(id,"m4a1")
 return PLUGIN_CONTINUE
 
        }
        case 1: { // client_cmd(id,"ak47")
 return PLUGIN_CONTINUE
 
        }
        case 3: { // client_cmd(id,"menu_1")
 return PLUGIN_CONTINUE
        }
 
        }
}
public Showmenu_6(id) {
    show_menu(id, Keysmenu_6, "1: Little C4 Bomb^n2: Back^n", -1, "menu_6") // Display menu
}
public Pressedmenu_6(id, key) {
    /* Menu:
    * 1: Little C4 Bomb
    * 0: Back
    */
 
    switch (key) {
        case 0: { // client_cmd(id,"say /buycharge")
 return PLUGIN_CONTINUE 
 
        }
        case 1: { // client_cmd(id,"menu_1")
 return PLUGIN_CONTINUE
 
        }
 
 
 
    }
    return PLUGIN_HANDLED 
}
public client_connect(id){
client_cmd(id,"bind n menu_1")
return PLUGIN_CONTINUE
}
no compile.. that..

i want to creat custom buy script...

Other weapons = add another plugins weapon console commend add it..

what my falut??

help me. please...

and log this..

Code:
Welcome to the AMX Mod X 1.76-300 Compiler.Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team/home/groups/amxmodx/tmp3/phpCJfQOl.sma(65) : warning 217: loose indentation/home/groups/amxmodx/tmp3/phpCJfQOl.sma(65) : error 029: invalid expression, assumed zero/home/groups/amxmodx/tmp3/phpCJfQOl.sma(65) : error 017: undefined symbol "Showmenu_2"/home/groups/amxmodx/tmp3/phpCJfQOl.sma(69) : error 029: invalid expression, assumed zero/home/groups/amxmodx/tmp3/phpCJfQOl.sma(69) : error 017: undefined symbol "Pressedmenu_2"/home/groups/amxmodx/tmp3/phpCJfQOl.sma(105) : warning 217: loose indentation/home/groups/amxmodx/tmp3/phpCJfQOl.sma(109) : error 002: only a single statement (or expression) can follow each "case"/home/groups/amxmodx/tmp3/phpCJfQOl.sma(109 -- 110) : warning 215: expression has no effect/home/groups/amxmodx/tmp3/phpCJfQOl.sma(111) : warning 209: function "Pressedmenu_1" should return a value/home/groups/amxmodx/tmp3/phpCJfQOl.sma(151) : warning 217: loose indentation/home/groups/amxmodx/tmp3/phpCJfQOl.sma(156) : warning 209: function "Pressedmenu_4" should return a value/home/groups/amxmodx/tmp3/phpCJfQOl.sma(183) : warning 209: function "Pressedmenu_3" should return a value/home/groups/amxmodx/tmp3/phpCJfQOl.sma(210) : warning 209: function "Pressedmenu_5" should return a value5 Errors.Could not locate output file /home/groups/amxmodx/public_html/websc3/phpCJfQOl.amx (compile failed).
lhrcap is offline
lhrcap
Senior Member
Join Date: Dec 2006
Old 02-10-2007 , 15:35   Re: what problerum?? this coding???
Reply With Quote #2

[quote=lhrcap;438161]
Code:
#include <amxmodx>
#define Keysmenu_1 (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)// Keys: 123450
#define Keysmenu_2 (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)// Keys: 1234560
#define Keysmenu_3 (1<<0)|(1<<1)|(1<<2)// Keys: 120
#define Keysmenu_4 (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)// Keys: 123450
#define Keysmenu_5 (1<<0)|(1<<1)|(1<<2)// Keys: 120
#define Keysmenu_6 (1<<0)|(1<<1)// Keys: 10
public plugin_init() {
    register_plugin("Making_menus","1.0","Fire")
    register_cvar("making_menu","1")
    register_clcmd( "menu_1","Showmenu_1")
    register_clcmd( "menu_2","Showmenu_2")
    register_clcmd( "menu_3","Showmenu_3")
    register_clcmd( "menu_4","Showmenu_4")
    register_clcmd( "menu_5","Showmenu_5")
    register_clcmd( "menu_6","Showmenu_6")
    register_menucmd(register_menuid("menu_1"), Keysmenu_1, "Pressedmenu_1")
    register_menucmd(register_menuid("menu_2"), Keysmenu_2, "Pressedmenu_2")
    register_menucmd(register_menuid("menu_3"), Keysmenu_3, "Pressedmenu_3")
    register_menucmd(register_menuid("menu_4"), Keysmenu_4, "Pressedmenu_4")
    register_menucmd(register_menuid("menu_5"), Keysmenu_5, "Pressedmenu_5")
    register_menucmd(register_menuid("menu_6"), Keysmenu_6, "Pressedmenu_6")
}
public Showmenu_1(id) {
    show_menu(id, Keysmenu_1, "1: Pistol^n2: Shot Guns^n3: Submachin Gun^n4: Rifles^n5: Other Weapons^n0: Exit^n^n", -1, "menu_1") // Display menu
}
public Pressedmenu_1(id, key) {
    /* Menu:
    * 1: Pistol
    * 2: Shot Guns
    * 3: Submachin Gun
    * 4: Rifles
    * 5: Other Weapons
    * 0: exit
    */
 
    switch (key) {
        case 0: { // client_cmd(id,"menu_2")
 return PLUGIN_CONTINUE 
 
        }
        case 1: { // client_cmd(id,"menu_3")
 return PLUGIN_CONTINUE
 
        }
        case 2: { // client_cmd(id,"menu_4")
 return PLUGIN_CONTINUE
 
        }
        case 3: { // client_cmd(id,"menu_5")
 return PLUGIN_CONTINUE
 
        }
        case 4: { // client_cmd(id,"menu_6")
 return PLUGIN_CONTINUE
        }
 
        case 5:   
 
    return PLUGIN_HANDLED 
}
public Showmenu_2(id) {
    show_menu(id, Keysmenu_2, "1: glock^n2: usp^n3: p228^n4: deagle^n5: elites^n6: fn57^n0: Back^n", -1, "menu_2") // Display menu
}
public Pressedmenu_2(id, key) {
    /* Menu:
    * 1: glock
    * 2: usp
    * 3: p228
    * 4: deagle
    * 5: elites
    * 6: fn57
    * 0: Back
    */
 
    switch (key) {
        case 0: { // client_cmd(id,"glock")
 return PLUGIN_CONTINUE
 
        }
        case 1: { // client_cmd(id,"usp")
 return PLUGIN_CONTINUE
 
        }
        case 2: { // client_cmd(id,"p228")
 return PLUGIN_CONTINUE
 
        }
        case 3: { // client_cmd(id,"deagle")
 return PLUGIN_CONTINUE
 
        }
        case 4: { // client_cmd(id,"elites")
 return PLUGIN_CONTINUE
        }
        case 5: { // client_cmd(id,"fn57")
 return PLUGIN_CONTINUE
 
        }
        case 6: { client_cmd(id,"menu_1")
 return PLUGIN_CONTINUE
 
        }
 
    return PLUGIN_HANDLED
    }
}
public Showmenu_4(id) {
    show_menu(id, Keysmenu_4, "1: TMP^n2: MP5 NAVY^n3: UMP45^n4: ^n4: MAC10^n5: P90^n0: Back^n", -1, "menu_4") // Display menu
}
public Pressedmenu_4(id, key) {
    /* Menu:
    * 1: TMP
    * 2: MP5 navy
    * 3: ump
    * 4: MAC10
    * 5: p90
    * 0: Back
    */
 
    switch (key) {
        case 0: { // client_cmd(id,"tmp")
 return PLUGIN_CONTINUE
 
        }
        case 1: { // client_cmd(id,"mp5")
 return PLUGIN_CONTINUE
 
        }
        case 2: { // client_cmd(id,"ump45")
 return PLUGIN_CONTINUE
 
        }
        case 3: { // client_cmd(id,"mac10")
 return PLUGIN_CONTINUE
 
        }
        case 4: { // client_cmd(id,"p90")
 return PLUGIN_CONTINUE
        }
 
 
 
        case 6: { client_cmd(id,"menu_1")
 return PLUGIN_CONTINUE
 
        }
 
      }
}
public Showmenu_3(id) {
    show_menu(id, Keysmenu_3, "1: M3^n2: XM1014^n3: Back^n", -1, "menu_3") // Display menu
}
public Pressedmenu_3(id, key) {
    /* Menu:
    * 1: M3
    * 2: XM1014
    * 0: Back
    */
 
    switch (key) {
        case 0: { // client_cmd(id,"m3")
 return PLUGIN_CONTINUE
 
        }
        case 1: { // client_cmd(id,"xm1014")
 return PLUGIN_CONTINUE
 
        }
        case 3: { // client_cmd(id,"menu_1")
 return PLUGIN_CONTINUE
        }
 
        }
}
public Showmenu_5(id) {
    show_menu(id, Keysmenu_5, "1: Colt Carbine M4A1^n2: AK-47^n3: Back^n", -1, "menu_5") // Display menu
}
public Pressedmenu_5(id, key) {
    /* Menu:
    * 1: M4A1
    * 2: AK-47
    * 0: Back
    */
 
    switch (key) {
        case 0: { // client_cmd(id,"m4a1")
 return PLUGIN_CONTINUE
 
        }
        case 1: { // client_cmd(id,"ak47")
 return PLUGIN_CONTINUE
 
        }
        case 3: { // client_cmd(id,"menu_1")
 return PLUGIN_CONTINUE
        }
 
        }
}
public Showmenu_6(id) {
    show_menu(id, Keysmenu_6, "1: Little C4 Bomb^n2: Back^n", -1, "menu_6") // Display menu
}
public Pressedmenu_6(id, key) {
    /* Menu:
    * 1: Little C4 Bomb
    * 0: Back
    */
 
    switch (key) {
        case 0: { // client_cmd(id,"say /buycharge")
 return PLUGIN_CONTINUE 
 
        }
        case 1: { // client_cmd(id,"menu_1")
 return PLUGIN_CONTINUE
 
        }
 
 
 
    }
    return PLUGIN_HANDLED 
}
public client_connect(id){
client_cmd(id,"bind n menu_1")
return PLUGIN_CONTINUE
}
no compile.. that..

i want to creat custom buy script...

Other weapons = add another plugins weapon console commend add it..

what my falut??

help me. please...

and log this..

Quote:
Originally Posted by lhrcap View Post
Welcome to the AMX Mod X 1.76-300 Compiler.Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team/home/groups/amxmodx/tmp3/phpCJfQOl.sma(65) : warning 217: loose indentation/home/groups/amxmodx/tmp3/phpCJfQOl.sma(65) : error 029: invalid expression, assumed zero/home/groups/amxmodx/tmp3/phpCJfQOl.sma(65) : error 017: undefined symbol "Showmenu_2"/home/groups/amxmodx/tmp3/phpCJfQOl.sma(69) : error 029: invalid expression, assumed zero/home/groups/amxmodx/tmp3/phpCJfQOl.sma(69) : error 017: undefined symbol "Pressedmenu_2"/home/groups/amxmodx/tmp3/phpCJfQOl.sma(105) : warning 217: loose indentation/home/groups/amxmodx/tmp3/phpCJfQOl.sma(109) : error 002: only a single statement (or expression) can follow each "case"/home/groups/amxmodx/tmp3/phpCJfQOl.sma(109 -- 110) : warning 215: expression has no effect/home/groups/amxmodx/tmp3/phpCJfQOl.sma(111) : warning 209: function "Pressedmenu_1" should return a value/home/groups/amxmodx/tmp3/phpCJfQOl.sma(151) : warning 217: loose indentation/home/groups/amxmodx/tmp3/phpCJfQOl.sma(156) : warning 209: function "Pressedmenu_4" should return a value/home/groups/amxmodx/tmp3/phpCJfQOl.sma(183) : warning 209: function "Pressedmenu_3" should return a value/home/groups/amxmodx/tmp3/phpCJfQOl.sma(210) : warning 209: function "Pressedmenu_5" should return a value5 Errors.Could not locate output file /home/groups/amxmodx/public_html/websc3/phpCJfQOl.amx (compile failed).
lhrcap is offline
mexykanu
Member
Join Date: Oct 2006
Old 02-11-2007 , 13:04   Re: what problerum?? this coding???
Reply With Quote #3

no offence but... i think you don't know -1 (minus 1) about Pawn.... and that's from someone who knows close to 0
mexykanu is offline
lhrcap
Senior Member
Join Date: Dec 2006
Old 02-12-2007 , 03:56   Re: what problerum?? this coding???
Reply With Quote #4

Quote:
Originally Posted by mexykanu View Post
no offence but... i think you don't know -1 (minus 1) about Pawn.... and that's from someone who knows close to 0
what mean?
lhrcap is offline
mexykanu
Member
Join Date: Oct 2006
Old 02-12-2007 , 04:45   Re: what problerum?? this coding???
Reply With Quote #5

means you need to do something else. this is not for you, until you learn it
mexykanu is offline
lhrcap
Senior Member
Join Date: Dec 2006
Old 02-12-2007 , 01:36   Re: what problerum?? this coding???
Reply With Quote #6

so.. i' ll change it -1 => 0??
lhrcap is offline
lhrcap
Senior Member
Join Date: Dec 2006
Old 02-12-2007 , 02:01   Re: what problerum?? this coding???
Reply With Quote #7

and only used that commend -> buy zone?
lhrcap is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 02-12-2007 , 02:58   Re: what problerum?? this coding???
Reply With Quote #8

lol?
[ --<-@ ] Black Rose is offline
lhrcap
Senior Member
Join Date: Dec 2006
Old 02-12-2007 , 03:55   not compile what's the problerum?
Reply With Quote #9

...
lhrcap 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 00:44.


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