ERRNO -> DSM_RES

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1565 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 17 years ago
parent 62590de67a
commit 32833cc496

@ -96,7 +96,7 @@ EXEC_ACTION_START(SCUPlayCountRightAction) {
if (str2i(resolveVars(par1, sess, sc_sess, event_params),cnt)) {
ERROR("could not parse count '%s'\n",
resolveVars(par1, sess, sc_sess, event_params).c_str());
sc_sess->SET_ERRNO(DSM_ERRNO_UNKNOWN_ARG);
sc_sess->SET_RES(DSM_RES_UNKNOWN_ARG);
return false;
}
@ -112,7 +112,7 @@ EXEC_ACTION_START(SCUPlayCountLeftAction) {
if (str2i(resolveVars(par1, sess, sc_sess, event_params),cnt)) {
ERROR("could not parse count '%s'\n",
resolveVars(par1, sess, sc_sess, event_params).c_str());
sc_sess->SET_ERRNO(DSM_ERRNO_UNKNOWN_ARG);
sc_sess->SET_RES(DSM_RES_UNKNOWN_ARG);
return false;
}

@ -15,11 +15,9 @@ Actions:
(like SayDigits from *)
Throws "file" exeption with #path if file can not be opened
utils.rand(string varname [, int modulo])
generates random number: $varname=rand()%modulo or $varname = rand()
utils.srand()
seed the RNG with time().
Conditions:

Loading…
Cancel
Save