SRL Archive - Help

[Error] T4DIntegerArray


rougarou

2012-04-18 19:20:43

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

2012-04-19 11:29:52

Still have no answer to this problem…

Echo_

2012-04-19 11:33:25

From: rougarou
Still have no answer to this problem…


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

rougarou

2012-04-19 17:38:58

From: Echo_
type
T4DIntegerArray = array of array of array of array of Integer;


Um ok… Not really making sense…

Sex

2012-04-19 17:47:48

From: rougarou
Um ok… Not really making sense…


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

NCDS

2012-04-19 21:31:23

From: rougarou
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

2012-04-19 23:28:50

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

2012-04-20 10:17:51

Thanks for the replies!