Noob Question: Initialize Error

kronnon

New Member
I get an error when I try to run a script. It says "Failed to initialize variable - object type 'index' rejected initialization. Does anyone know what I am doing wrong?
 

Amadeus

The Maestro
Staff member
Perhaps show us the script? Are you sure that ISXEVE is properly loaded and ready to go?
 

kronnon

New Member
I've tried scripts like the one from the scripts thread. It fails on "variable index:item ContainerCargo".
 

Amadeus

The Maestro
Staff member
in the main() function of the script, be sure you have something like:

Code:
if !${ISXEVE.IsReady}
{
    echo "ISXEVE is not ready...."
    if !${ISXEVE(exists)}
        ext isxeve
    do
    {
        waitframe
     }
     while !${ISXEVE.IsReady}
}
If it then says ISXEVE isn't ready and just sits there doing nothing, then you have bigger problems.

But yea, the first thing you have to do before using scripts is to load ISXEVE. The setup instructions for ISXEVE explains how to do this.
 
Top Bottom