Jump to content

llGetSubString giving odd results


Tsuki Saphed
 Share

You are about to reply to a thread that has been inactive for 4343 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Ok so... I'm using llGetSubString to brake up a message into multible part.

the message the script gets is this: "70d353e2-7137-bb03-b101-821db0399d39 pos <93.32597, 121.76630, 2002.50000>"


and goes thorugh the desired functions:

			if (camID == llGetSubString(message,0,35))
			{
				if (llGetSubString(message,37,39) == "pos")
				{
					vector pos = (vector)llGetSubString(message,41,-0);
				}

however when it troes to isolate the vector that follows <93.32597, 121.76630, 2002.50000>, it doesn't absorb it correctly.

did a test with llOwnerSay and apperantly LLGetSubString(message,41,-0) says: 7<93.32597, 121.76630, 2002.50000>

odd seeing as there isn't a 7 between pos and the vector. for fun I changed the getsubstring from 41 to 42, still that number seven keeps popping up and I have no clue how.. simply put pos gets assigned a null vector because of that 7.

 

any help?

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4343 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...