Passing arguments to messagemode
This code gets logged up to #3, #4 never gets logged, no idea why.
What I've done is a menu that shows some player names, when you select one of them, you should get a messagemode showing: <playername>: <yourinput> from where: <playername> - The name of the player which we selected on the menu (must be passed through somewhere) <yourinput> - the value that we're going to set in the messagemode. PHP Code:
|
Re: Passing arguments to messagemode
Code:
I don't think you can do that. Save the name in a variable and add it to the string later. Code:
|
Re: Passing arguments to messagemode
Quote:
PHP Code:
|
Re: Passing arguments to messagemode
You have iTarget, szPlayerId - save one of them in a global variable - g_iTarget[33] and you can use it in the comnand's body.
|
Re: Passing arguments to messagemode
Quote:
Check my Whatsapp plugin for more example of messagemode. |
Re: Passing arguments to messagemode
Quote:
Code:
When sending client_cmd messagemode, then in the command's handler I used new iTarget = g_iTarget[id] Quote:
|
Re: Passing arguments to messagemode
That's exactly what I meant. You can check my JailBreak Reasons plugin for a very similar usage like yours.
|
| All times are GMT -4. The time now is 17:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.