Author Topic: Finding something in a string  (Read 399 times)

Well, I am trying to code my radio chat system, and I am implementing into the regular chat system I have already made for local. I am trying to make it so when you say "Message, over" that it tries to search for my radio brick, and then does stuff. Here is my string code thing:
Code: [Select]
if(getSubStr(%text,strPos(%text,", over") $= ", over",strlen(", over")))
I thought this would work, it's supposed to search the entire string for ", over" but for some reason, it doesn't work when I try it in game. What could I do to search for something inside a string, with varying string lengths?
« Last Edit: June 16, 2009, 08:47:05 PM by AGlass0fMilk »

Oops, I put $= "blah" inside the getSubstring thing ohhh. I'll fix that, locking until I need more help.