AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [One Last HELP] Menu Code (https://forums.alliedmods.net/showthread.php?t=274276)

Kosidone 11-05-2015 06:01

[One Last HELP] Menu Code
 
solved

OciXCrom 11-05-2015 07:06

Re: [One Last HELP] Menu Code
 
register_cmd => register_clcmd

Kosidone 11-05-2015 08:11

Re: [One Last HELP] Menu Code
 
thanks for answer but when i change it to clcmd it doesn't work

i mean it compile but it don't appear the menu !

OciXCrom 11-05-2015 11:50

Re: [One Last HELP] Menu Code
 
What command are you using and does it show any errors in the console?

Kosidone 11-05-2015 12:04

Re: [One Last HELP] Menu Code
 
i'm not using any command Code said when you push M "choose_team"

Code:

register_clcmd("chooseteam", "handler");
new menu = menu_create( "\rPlayer Menu!:", "menu_handler" );

btw i have no error when i change this
PHP Code:

 register_cmd("menu""player"); 

to this
PHP Code:

 register_clcmd("menu""player"); 


OciXCrom 11-05-2015 14:32

Re: [One Last HELP] Menu Code
 
It would be nice if you tell us what's the error.

Kosidone 11-05-2015 14:43

Re: [One Last HELP] Menu Code
 
The error is When i change cmd to -> clcmd it run in game but don't appear the menu
and when i change clcmd to -> cmd it said

Code:

M_Menu2.sma(60) : error 017: undefined symbol "register_cmd"
M_Menu2.sma(253) : warning 217: loose indentation
M_Menu2.sma(412) : warning 217: loose indentation
M_Menu2.sma(452) : warning 217: loose indentation

1 Error.
Compilarea failed!


OciXCrom 11-05-2015 17:22

Re: [One Last HELP] Menu Code
 
There is no such thing as register_cmd, and your command is "menu".

Kosidone 11-07-2015 09:33

Re: [One Last HELP] Menu Code
 
oh thnx but how can i make the "menu" in ChooseTeam ?

OciXCrom 11-07-2015 17:54

Re: [One Last HELP] Menu Code
 
Change the command to "chooseteam"... Why not try and figure it out your self before asking for help?


All times are GMT -4. The time now is 18:02.

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