Es.getargc
From EventScripts Community Encyclopedia
[edit] Method: getargcModule: es [edit] Method Overview[edit] Table of Contents
[edit] DescriptionReturns the number of arguments sent to a command! This is the Python equivalent of: http://www.eventscripts.com/pages/es_getargc [edit] Arguments(None)
[edit] Examplesdef load(): es.regsaycmd("test", "script/test", "This is a test command") def test(): var = es.getargc() So if you type test arg1 arg2 arg3 it would return 4 because there are 3 args plus the command test [edit] Notes(None)
[edit] See Also |
|
