POV-Ray : Newsgroups : povray.programming : --- Server Time
2 May 2024 10:56:08 EDT (-0400)
  --- (Message 1 to 1 of 1)  
From: danyolgiax
Subject: Re: Random in array with float...
Date: 16 May 2006 04:00:00
Message: <web.44698564b36d06a8eb78fb0@news.povray.org>
"danyolgiax" <d.o### [at] gmailcom> wrote:
> File: C:ProgrammiPOV-Ray for Windows v3.6INCLUDEarrays.inc  Line: 19
> File Context (5 lines):
>       Array[floor(rand(Stream)*0.9999999*dimension_size(Array,1))]
>    #
> Parse Error: All #declares of float, vector, and color require semi-colon
> ';' at end if the language version is set to 3.5 or higher. Either add the
> semi-colon or set the
> language version to 3.1 or lower.
>
>
> I've got this error trying to do this:
>
> #declare myArray=array[3];
> #declare myArray[0]=0;
> #declare myArray[1]=45;
> #declare myArray[2]=90;
> #declare myRandomT=Rand_Array_Item(myArray, seed (1152));
>
> WHY????

Sorry!

Solution is here:
http://news.povray.org/povray.general/thread/%3Cweb.443d3793c13db847429e56f30@news.povray.org%3E/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.