Call messagemode with params
I have a fair amount of user inputs and creating new function for every input doesn't seem good (unless it's the only way).
So is there a way to call messagemode with params? PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Re: Call messagemode with params
You can read the entire input with "read_args" and separate the arguments with "parse".
|
Re: Call messagemode with params
Quote:
|
Re: Call messagemode with params
Seems you are miss lead using register_clcmd function
Its function passed into it only 3 parameters id, level, cid. There is no such a parameter called inputfor Inputfor should be a global user variable to determind which shop is the player using right now. |
Re: Call messagemode with params
You can use player_menu_info() to determine which menu is currently open and take action based on that, if it's possible to input those values only while those menus are open.
|
Re: Call messagemode with params
client_cmd(id, "messagemode iInput 1"); ?
|
Re: Call messagemode with params
Quote:
Thanks everyone for contribution. |
| All times are GMT -4. The time now is 07:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.