소스 검색

Amended script command checkweight documentation
* Fixes #1917.
* Second example is about arrays and should use script command checkweight2.
Thanks to @lucasoli!

aleos89 8 년 전
부모
커밋
6e9cd4404a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      doc/script_commands.txt

+ 1 - 1
doc/script_commands.txt

@@ -3479,7 +3479,7 @@ Example 2:
 
 	setarray .@item[0],512,513,514;
 	setarray .@amount[0],10,5,5;
-	if (!checkweight(.@item,.@amount)) {
+	if (!checkweight2(.@item,.@amount)) {
 		mes "Sorry, you cannot hold this amount of fruit!";
 	}