Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Simple PowerPoint script doesn't work

Itchy Morpork
Registered User
Join date: 7 Jul 2008
Posts: 6
08-04-2008 11:24
hi everyone,

i am trying to install a power point presentation in SL, using this description http://oreilly.com/pub/h/5239

I used this description some months ago and it worked...

But when I compile the code now, the following error message appears: "ERROR - Name not defined within scope"

What does it mean and how can i solve the problem? I am using version 1.20.15 (92456)


integer invCount;
integer invLoopCount;

default
{
state_entry()
{
invCount = llGetventoryNumber(INVENTORY_TEXTURE);
}

touch_start(integer total_number)
{
llSetTexture(llGetventoryName(INVENTORY_TEXTURE, invLoopCount), ALL_SIDES);

invLoopCount++;

if (invLoopCount == invCount)
{
invLoopCount = 0;
}
}
}
Beverly Ultsch
Registered User
Join date: 6 Sep 2007
Posts: 229
08-04-2008 11:34
Spelling mistake

llGetventoryNumber should be llGetInventoryNumber
llGetventoryName should be llGetInventoryName
Itchy Morpork
Registered User
Join date: 7 Jul 2008
Posts: 6
08-04-2008 11:46
thx for the quick reply!

this small mistake took me 1 hour of my life :-) it works now...