Quote:
Originally Posted by sssssssssss
I saw an error in my code. :x sry
PHP Code:
function ChatBar.onAction() {
if (ChatBar.text.substring(0, 4) == "/set") { //honestly i cant remember if it starts at 0 or 1, I believe its 0. If not, you'd do 1, 4
temp.tokens = ChatBar.text.tokenize(); //as previously mentioned, SPACES become separators
if (tokens[1] == "shoes"){
player.colors[2] = tokens[2];
}
}
// i believe you could dynamically set it with substrings, but since it's already in tokens, it's better to just use the tokens.
|
now if there isnt some kind of error then ill restart scripting and learn it all from the beginning
