Raised This Month: $ Target: $400
 0% 

Solved Passing arguments to messagemode


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 08-17-2018 , 19:44   Re: Passing arguments to messagemode
Reply With Quote #1

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.
__________________

Last edited by OciXCrom; 08-17-2018 at 19:44.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-18-2018 , 06:49   Re: Passing arguments to messagemode
Reply With Quote #2

Quote:
Originally Posted by OciXCrom View Post
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.
Well, szPlayerId is simply iTarget as a string, but your reply gave me an idea, I created a variable g_iTarget[33] as you said, and did

Code:
g_iTarget[id] = iTarget

When sending client_cmd messagemode, then in the command's handler I used new iTarget = g_iTarget[id]

Quote:
Originally Posted by CrAzY MaN View Post
I think you must go with what OciXCrom said.
Check my Whatsapp plugin for more example of messagemode.
Your plugin uses the basic version of the messagemode, I needed to pass something through it.
__________________
edon1337 is offline
Reply



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 17:32.


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