[Plugin] SA:MP Shell Plugin
#15

Quote:
Originally Posted by KubiPL
Посмотреть сообщение
Got issue with this code:
Код:
public OnRconCommand(cmd[])
{
    if(cmd[0]=='s' && cmd[1]=='h' && cmd[2]=='e' && cmd[3]=='l' && cmd[4]=='l')
    {
        strdel(cmd, 0, 6);
        //SHELL_System(cmd);
        thisshell = SHELL_Execute(cmd);
    }
    return 1;
}

public OnReceiveShellMessage(Shell:handle, msg[])
{
    if(handle == thisshell)
    {
        print(msg);
    }
}
Log:
Код:
Console input: shell dir
[14:31:13] dir
[14:31:13] 
---------------------------------------
[14:31:13] Running Grand Larceny

[14:31:13] ---------------------------------------

[14:31:13]  Wolumin w stacji F to GOODRAM

[14:31:13] 
---------------------------------------
[14:31:13] Running Grand Larceny

[14:31:13] ---------------------------------------

[14:31:13]  Numer seryjny woluminu: 9EF5-FBB4

[14:31:13] 
---------------------------------------
[14:31:13] Running Grand Larceny

[14:31:13] ---------------------------------------

[14:31:13] 

[14:31:13] 
---------------------------------------
[14:31:13] Running Grand Larceny

[14:31:13] ---------------------------------------

[14:31:13]  Katalog: F:\sampsvr\zombie

[14:31:13] 
---------------------------------------
[14:31:13] Running Grand Larceny

[14:31:13] ---------------------------------------

[14:31:13] 

[14:31:13] 
---------------------------------------
[14:31:13] Running Grand Larceny

[14:31:13] ---------------------------------------

[14:31:13] 2014-11-25  14:18    <DIR>          .

[14:31:13] 
---------------------------------------
[14:31:13] Running Grand Larceny

[14:31:13] ---------------------------------------

[14:31:13] 2014-11-25  14:18    <DIR>          ..

[14:31:13] 
---------------------------------------
[14:31:13] Running Grand Larceny

[14:31:13] ---------------------------------------

[14:31:13] 2014-01-16  16:41            40˙960 announce.exe

[14:31:13] 
---------------------------------------
[14:31:13] Running Grand Larceny

[14:31:13] ---------------------------------------

[14:31:13] 2013-11-23  17:21               404 audio.ini

[14:31:13] 
---------------------------------------
[14:31:13] Running Grand Larceny

[14:31:13] ---------------------------------------

[14:31:13] 2014-11-25  11:00    <DIR>          audiopacks

[14:31:13] 
---------------------------------------
[14:31:13] Running Grand Larceny

[14:31:13] ---------------------------------------

[14:31:13] 2013-08-28  14:14               282 Ceny punkt˘w.txt

[14:31:13] 
---------------------------------------
[14:31:13] Running Grand Larceny

[14:31:13] ---------------------------------------

[14:31:13] 2013-10-04  18:56                61 connect.txt

[14:31:13] 
---------------------------------------
[14:31:13] Running Grand Larceny

[14:31:13] ---------------------------------------

[14:31:13] 2014-11-25  14:29           503˙323 crashinfo.txt

[14:31:13] 
---------------------------------------
[14:31:13] Running Grand Larceny

[14:31:13] ---------------------------------------

[14:31:13] 2014-11-24  21:59        11˙091˙722 Debug.txt

[14:31:13] 
---------------------------------------
[14:31:13] Running Grand Larceny

[14:31:13] ---------------------------------------

[14:31:13] 2014-11-25  13:49    <DIR>          filterscripts

[14:31:13] 
---------------------------------------
[14:31:13] Running Grand Larceny

[14:31:13] ---------------------------------------

[14:31:13] 2014-11-25  11:01    <DIR>          gamemodes

[14:31:13] [sampgdk] error: Too many callback arguments (at most 32 allowed)
[14:31:13] 
---------------------------------------
[14:31:13] Running Grand Larceny

[14:31:13] ---------------------------------------

[14:31:13] 2014-11-25  11:01    <DIR>          include

[14:31:13] [sampgdk] error: Too many callback arguments (at most 32 allowed)
[14:31:13] 
---------------------------------------
[14:31:13] Running Grand Larceny

[14:31:13] ---------------------------------------

[14:31:13] 2013-08-07  12:28           270˙336 libcurl.dll

[14:31:13] [sampgdk] error: Too many callback arguments (at most 32 allowed)
[14:31:13] 
---------------------------------------
[14:31:13] Running Grand Larceny

[14:31:13] ---------------------------------------

[14:31:13] 2012-09-13  12:50         1˙519˙616 libmysql.dll

[14:31:13] [sampgdk] error: Too many callback arguments (at most 32 allowed)
[14:31:13] 
---------------------------------------
[14:31:13] Running Grand Larceny

[14:31:13] ---------------------------------------

[14:31:13] 2014-11-25  11:01    <DIR>          linux

[14:31:13] [sampgdk] error: Too many callback arguments (at most 32 allowed)
[14:31:13] 
---------------------------------------
[14:31:13] Running Grand Larceny

[14:31:13] ---------------------------------------

[14:31:13] 2013-09-30  14:55             7˙729 logo.png

[14:31:13] [sampgdk] error: Too many callback arguments (at most 32 allowed)
[14:31:13] 
---------------------------------------
[14:31:13] Running Grand Larceny

[14:31:13] ---------------------------------------
I would like to know, what plugins you are using for this.
Reply


Messages In This Thread
SA:MP Shell Plugin - by BigETI - 22.11.2014, 20:18
Re: SA:MP Shell Plugin - by Jay_ - 22.11.2014, 20:24
Re: SA:MP Shell Plugin - by Meta - 22.11.2014, 20:26
Re: SA:MP Shell Plugin - by Kaperstone - 22.11.2014, 20:31
AW: Re: SA:MP Shell Plugin - by BigETI - 22.11.2014, 20:33
Re: SA:MP Shell Plugin - by Pottus - 22.11.2014, 20:36
Re: SA:MP Shell Plugin - by Write - 22.11.2014, 21:36
Re: SA:MP Shell Plugin - by Abagail - 22.11.2014, 21:52
Re: SA:MP Shell Plugin - by spell - 23.11.2014, 04:15
AW: SA:MP Shell Plugin - by BigETI - 23.11.2014, 14:21
AW: Re: SA:MP Shell Plugin - by BigETI - 23.11.2014, 21:25
Re: SA:MP Shell Plugin - by Crowler - 24.11.2014, 19:46
Re: SA:MP Shell Plugin - by Mark™ - 25.11.2014, 11:09
Re: SA:MP Shell Plugin - by KubiPL - 25.11.2014, 12:45
AW: Re: SA:MP Shell Plugin - by BigETI - 25.11.2014, 13:45
Re: SA:MP Shell Plugin - by KubiPL - 25.11.2014, 15:25
AW: SA:MP Shell Plugin - by BigETI - 27.11.2014, 09:53

Forum Jump:


Users browsing this thread: 1 Guest(s)