diff options
author | AnnieRuru <jeankof@ymail.com> | 2015-11-17 05:28:16 +0800 |
---|---|---|
committer | AnnieRuru <jeankof@ymail.com> | 2015-11-17 05:28:16 +0800 |
commit | d90c00ef4641e7809df15960d318e67e2414abb2 (patch) | |
tree | c0ef4ff3fce37528e56e6f4581aa0fe5c3e56da1 /npc/other | |
parent | 44a79fd2d56ca8c9ec0a13eb3ce206d940e0d4ae (diff) | |
download | hercules-d90c00ef4641e7809df15960d318e67e2414abb2.tar.gz hercules-d90c00ef4641e7809df15960d318e67e2414abb2.tar.bz2 hercules-d90c00ef4641e7809df15960d318e67e2414abb2.tar.xz hercules-d90c00ef4641e7809df15960d318e67e2414abb2.zip |
Add some FAQ documentation that some script command can return value
- getitemname can return "null"
- getmapusers can return -1
and fix the bad ... misleading global function example
Diffstat (limited to 'npc/other')
-rw-r--r-- | npc/other/Global_Functions.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/npc/other/Global_Functions.txt b/npc/other/Global_Functions.txt index ff5b78b2d..dc675f8d0 100644 --- a/npc/other/Global_Functions.txt +++ b/npc/other/Global_Functions.txt @@ -46,10 +46,10 @@ // Returns a number with commas based on precision of digits and custom separator. // -- callfunc "F_InsertComma",<number>{,<precision>,<separator>} // Examples: -// callfunc("F_InsertComma",7777777{,<precision>,<separator>}) // returns "7,777,777" -// callfunc("F_InsertComma",1000000000,3,","}) // returns "1,000,000,000" -// callfunc("F_InsertComma",1000000000,3,"_"}) // returns "1_000_000_000" -// callfunc("F_InsertComma",1000000000,4) // returns "10,0000,0000" +// callfunc("F_InsertComma",7777777) // returns "7,777,777" +// callfunc("F_InsertComma",1000000000,3,",") // returns "1,000,000,000" +// callfunc("F_InsertComma",1000000000,3,"_") // returns "1_000_000_000" +// callfunc("F_InsertComma",1000000000,4) // returns "10,0000,0000" ////////////////////////////////////////////////////////////////////////////////// function script F_InsertComma { .@value = getarg(0); |