Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

need help with error type mismatch on llSay

Murdock Pennell
Registered User
Join date: 24 Jun 2007
Posts: 4
06-14-2008 09:44
Hi can some one help me with this script I am getting error type mismatch on llSay(0,where + " " + (string)rot + " " + (string)who); and I can’t see why please help

murdock

////////////////////////////////////////////////////////////////////////////////////////////////////////

string who;
vector where;
rotation rot;

default
{
link_message(integer sender_number, integer number, string message, key id)
{
where = llGetPos();
rot = llGetRot();
who = message;
llSetTimerEvent(.5);
}
timer()
{
llSetTimerEvent(0);
llSay(0,where + " " + (string)rot + " " + (string)who);
}
}

////////////////////////////////////////////////////////////////////////////////////////////////////////
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
06-14-2008 09:53
From: Murdock Pennell

string who;
vector where;
rotation rot;

[snip]

llSay(0,where + " " + (string)rot + " " + (string)who);
You're typecasting one variable which doesn't need to be (since it's already a string), and not typecasting another which does.
Murdock Pennell
Registered User
Join date: 24 Jun 2007
Posts: 4
06-14-2008 10:28
Thank you.