Hi All,
This is very interesting to me, here is my code (the problem parts):
Code:
var video_mode = 7; // 800x600 pixels
var screen_color[3] = 150,0,0; // dark blue
var a = 0;
var b = 0;
var c = 0;
// inventory
var inv_i = 6; //maximum properties
var inv_slot; //slot number
var inventory[3000]; // actual inventory
// inventory properties
var inv_id = 0;
var inv_name = 1;
var inv_value = 2;
var inv_weight = 3;
var inv_type = 4;
var inv_equipted = 5;
//usage example = inventory[inv_slot*inv_i+inv_property]
var i = 1;
while(i < 25)
{
inventory[i*inv_i + inv_value] = 52 + i;
i += 1;
}
function show_slot(slot,property)
{
a = inventory[slot*inv_i + property];
}
And here is the error message(s):
Code:
1) Parameter Unknown while bad keyword in { }
2) Parameter Unknown inventory bad keyword in { }
3) Parameter Unknown i bad keyword in { }
Ya know what's even more messed up? Every time I run the engine, if I retype the array name of "inventory" without changing ANYTHING then it will work the next time I execute the script, but right after I close and run it again I get the same errors... I have NO idea what's going on here.
Any help on this is UBER appreciated, and yes, I have completed the C-Script tutorial, and yes, I did search for this problem in the forums.
Once again, I really appreciate any help on this matter.
-Aaron