Posted 26 February 2014 - 09:32 PM
Hi CC_Forum,
im trying to find a 'word' in a variable and i want to use table(s) cause there are many of these 'words'. But my Problem is, that it does nothing :o/>
Maybe its cause i still got some problems with for-loops and string.match() :(/>
(Here my Complete Code)
http://pastebin.com/paC8kRRx
What could be the solution for this?
Thanks for the Help
gfcwfzkm (Pascal)
im trying to find a 'word' in a variable and i want to use table(s) cause there are many of these 'words'. But my Problem is, that it does nothing :o/>
Maybe its cause i still got some problems with for-loops and string.match() :(/>
for ii,xx in pairs(badNPC) do
if string.match(Str,ii) == true then
term.setTextColor(colors.blue)
return true
end
end
I want that it change the Textcolor if the variable 'Str' is in the table 'badNPC'. But well, it dont works good :/(Here my Complete Code)
http://pastebin.com/paC8kRRx
What could be the solution for this?
Thanks for the Help
gfcwfzkm (Pascal)