Jump to content
  • 0

@bst or @market help on eAmod Emulator?


Question

5 answers to this question

Recommended Posts

Posted

nothing appear. 

only when i try to @bst command unavailabe. 

done loading script

 


line 14
    parse_line: expect command, missing function name or calling undeclared function
     9 :        }
    10 :        if ( @bst_delay + 1800 > gettimetick(2) ) {
    11 :                message strcharinfo(0), "There is a 30 min delay of using this command again";
    12 :                end;
    13 :        }
*   14 :        '@'bst_delay = gettimetick(2);
    15 :        .@message$ = implode( .@atcmd_parameters$," " );
    16 :        announce "[Market] "+ strcharinfo(0) +" : "+ .@message$, bc_all, 0x9999FF;
    17 :        query_logsql( "INSERT INTO `bst_market_log` ( `name`, `message` ) VALUES ( '"+escape_sql(strcharinfo(0))+"', '"+escape_sql( getstrlen(.@message$)>150?substr(.@message$,0,149):.@message$ )+"' );" );
    18 :        end;
    19 : }
Posted (edited)

here, not tested

-	script	bst_atcommand	-1,{
OnInit:
	bindatcmd "bst",strnpcinfo(0)+"::OnCommand";
	end;
OnCommand:
	if ( !getstrlen(.@atcmd_parameters$) ) {
		message strcharinfo(0), "Please, enter a message (usage: @bst <message>).";
		end;
	}
	if ( .@bst_delay + 1800 > gettimetick(2) ) {
		message strcharinfo(0), "There is a 30 min delay of using this command again";
		end;
	}
	.@bst_delay = gettimetick(2);
	.@message$ = implode( .@atcmd_parameters$," " );
	announce "[Market] "+ strcharinfo(0) +" : "+ .@message$, bc_all, 0x9999FF;
	query_logsql( "INSERT INTO `bst_market_log` ( `name`, `message` ) VALUES ( '"+escape_sql(strcharinfo(0))+"', '"+escape_sql( getstrlen(.@message$)>150?substr(.@message$,0,149):.@message$ )+"' );" );
	end;
}
Edited by EL Dragon

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...