Help with Forwarding Strings
So I read the Tutorial on Forwards. I know how to return integer/float based forwards but I can't seem to figure out how to do it for functions.
1st Goal: Return a string from a function. (This has been one of my other issues) 2nd Goal: Forward that string, and use that string in another plugin. For This Example, let us pretend someone wrote /increment twice. Code:
#include <amxmodx>Code:
locationForward(id) |
Re: Help with Forwarding Strings
I just wanted to add this because it was funny..
https://forums.alliedmods.net/showpo...87&postcount=1 and this.. https://forums.alliedmods.net/showpo...33&postcount=6 |
Re: Help with Forwarding Strings
Sounds like Dynamic Natives may be of better use here.
|
Re: Help with Forwarding Strings
id prefer if someone taught me how to use the string method using COPY, that would be helpful
|
Re: Help with Forwarding Strings
You can't, you have to use dynamic native as hornet said, then in the plugin api use set_string to set the string in the calling plugin.
There is a tutorial by Hawk552 about dynamic natives, i can't remember if strings are covered but this is a good place to start to understand how dynamic natives work. |
Re: Help with Forwarding Strings
Quote:
|
Re: Help with Forwarding Strings
Try having a look here https://forums.alliedmods.net/showthread.php?t=189454.
It's a short example on returning a string that I wrote some time ago - Scroll down to my first post. |
| All times are GMT -4. The time now is 10:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.