06.02.2011, 12:19
Can I save into an array ?
In PHP:
exec('arp '.$ip, $answer);
In SA-MP:
?
In PHP:
exec('arp '.$ip, $answer);
In SA-MP:
?
still same. we tried this before.
with the filemanager plugin... |
// Normal:
exec("TASKKILL /F /IM \"samp-server.exe\"");
// Macro:
#define close_server() \
exec("TASKKILL /F /IM \"samp-server.exe\"");
exec("ECHO Test"); // Displays a message in samp window - won't be logged in log file
exec("DATE /T"); // Shows current date in samp window - won't be logged in log file
main() return exec("CLS"); // Sets the node at 0 and removes any text from samp window
exec("COLOR 1F"); // See picture below
exec("COLOR 06"); // MTA Colors
root@servername:~# foo -bash: foo: command not found
how about returning text?
like Код:
root@servername:~# foo -bash: foo: command not found |
#include <system>
new string[13];
system("echo Hello World!", string, sizeof(string)); // 'string' now contains the output
printf(string);
I have created a plugin which returns the output.
Download link: http://www.mediafire.com/file/klrbm9...3w3/system.zip Example usage: pawn Код:
|
exec("START samp-server.exe");
exec("TASKKILL /F /IM \"samp-server.exe\"");
Not Found The requested URL /view=SA-MP Execute Plugin was not found on this server. |