icon315
Member
I was adding more to my throwerbot, but i keep running into a problem. I keep getting the error:
print(check ); returns
Here is the snippet
Code:
Begin index -1 out of bounds (Arrowbottesting.ash, line 35)
Code:
icon315 "Hi"
PHP:
void main (string sender, string message)
{
string check;
string check2;
if (length(message) > 5){
check = substring(message,6);
check2 = substring(message,0,5);
}
else {
if (length(message) == 5){
check = substring(message,0);
check2 = substring(message,0,5);
}
}
if (check2 == "smoke")
{
print(check);
string check3 = substring(check, index_of(check ," \""), last_index_of(check, "\""));//LINE 35!
check = check.replace_string(check, substring(check,6, last_index_of(check, " \"")));
if(smoke(check,check3))//Sends the message
}
}
Last edited: