Return server_cmd output to string
Hello,
I would like a little help with amxmodx scripting, I'm trying to store output of server_cmd in a string ... I just can't figure it out howto. I was thinking at: Code:
new data = server_cmd("echo MATCHSTRING");So, the main question is: how can I store return of the server_cmd into a variable ? server_cmd("echo 123"); returns "123" - I want to store this in a variable. Note: My server_cmd will return dynamic content, that's why I need to store it into a variable. |
Re: Return server_cmd output to string
server_cmd() returns the length of the string that you sent to the server's console.
It does not return the output of the command that you send. Quote:
|
Re: Return server_cmd output to string
What I want is to execute a server_cmd and return the output in a string, is it possible ?
|
Re: Return server_cmd output to string
|
| All times are GMT -4. The time now is 11:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.