Forward string
Hi,
Is there a way to pass a pointer to string in a multiforward ? I call a multiforward with strings in parameter from plugin1, plugin2 has the function and modify theses strings ... and i would like to get modifyed string in plugin1. It doesn't work with string, I've always the same string in plugin1 ... Quote:
Quote:
thks |
Re: Forward string
Can't use use FM's EngFunc_AllocString, and pass it as a cell?
So long as anyone using your forward knows it's an allocated string ... No, wait. Think I slightly missed your point. PAWN doesn't really do pointers, so I doubt you'll have any real luck there. |
Re: Forward string
The only thing i can think and tested, is to call a forward to main plugin and send the modified string :D...here is an e.g (Works):
Main: Code:
#include <amxmodx>Code:
#include <amxmodx> |
Re: Forward string
Take a look at ATAC 3.0.0 source code:
exec_PunishName function is what you want to look at, this is the core for handling the punishment titles. The only thing is you must encode the string to send it back to plugin 1. Look at any punishment scripts for function: public atac_punishment_name( id ). |
Re: Forward string
Yer site ain't loading thar Monkey boy.
|
Re: Forward string
Code:
native set_string(param, dest[], maxlen); |
Re: Forward string
Thank you guys, I'll try asap.
|
Re: Forward string
Quote:
|
| All times are GMT -4. The time now is 01:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.