Log in

View Full Version : [Error] T4DIntegerArray



rougarou
04-18-2012, 11:20 PM
I set up windwalk the way its done in the guides then run the script buttercatcher and the sps script pops up beside it and i get this error

[Hint] C:\Simba\Includes\SRL/SRL/core/mapwalk.simba(1353:3): Variable 'BOX' never used at line 1352
[Error] C:\Simba\Includes\sps/sps.simba(37:17): Unknown type 'T4DIntegerArray' at line 36
Compiling failed.

I've seen a couple of these problems recently, any idea why?

Heres a link to where I post in the thread of the buttercatcher developer with the post above mine having the same problem

http://villavu.com/forum/showpost.php?p=993537&postcount=122

Thread
http://villavu.com/forum/showthread.php?t=70846&page=5

rougarou
04-19-2012, 03:29 PM
Still have no answer to this problem...

Echo_
04-19-2012, 03:33 PM
Still have no answer to this problem...

type
T4DIntegerArray = array of array of array of array of Integer;

rougarou
04-19-2012, 09:38 PM
type
T4DIntegerArray = array of array of array of array of Integer;

Um ok... Not really making sense...

Sex
04-19-2012, 09:47 PM
Um ok... Not really making sense...

Makes perfect sense :). Place the code he gave you at the top of the script under Program.

NCDS
04-20-2012, 01:31 AM
Um ok... Not really making sense...

T4DIntegerArray is a type that does not exist in PascalScript, therefor you need to declare it locally in your program; which is what has been done for you hear.

For example, the TIntegerArray type declaration looks as follows:

type
TIntegerArray: array of Integer;

//and T2DIntegerArray..
T2DIntegerArray: array of array of Integer;

//etc.

SKy Scripter
04-20-2012, 03:28 AM
declare the variable that it gives the error at the top of the program as this...



var

replacedvariable_here: array of array of T2DIntegerArray;

rougarou
04-20-2012, 02:17 PM
Thanks for the replies!