I don't want to sound critical or anything, but I personally think Plan-1130's code is slightly better than markee's.
First of all, in markee's code,
i does not need to be a global variable (defined outside the function), because it is only used by that one function. The fact that it is a global variable in the code is the reason why there are conflicts when "you send this to another person before the 15 messages are sent". Using the
for statements in Plan-1130's code is in my opinion a cleaner and better way to spam the message because, not only is
i then a local variable, but statements such as
if(i<15),
i++ and
i=0 are implied in the one line.
Secondly, in markee's code, if
Message does not equal "irritant Hè!", then the
else statements are executed, including
return "". I haven't tested this, but this should mean that all other messages are not sent to the user's contact.
The only problem I find in Plan-1130's code is that
return Message may interfere with other scripts, but this is fairly minor and probably won't happen.
That's basically why I would go for Plan-1130's code instead of markee's.
PS. Don't take this as a personal attack or anything, markee. Just wanted to improve your coding skills.