What am I doing wrong here? I'm trying to display a player's HP and SP on the screen using digits():
Code:
var HP = 0;
var SP = 1;
var playerstats[2];
var playerstats_level_01[2] = 40, 20;
playerstats[HP] = playerstats_level_01[HP];
playerstats[SP] = playerstats_level_01[SP];
panel player_stats_window
{
layer = 1;
bmap = stats_bg;
pos_x = 15;
pos_y = 500;
digits = 150,55,1,standard_font,1,playerstats[1];
flags = refresh,d3d;
}
string player_stats_string = "HP \n\nSP \n";
text player_stats_text
{
layer = 2;
pos_x = 75;
pos_y = 550;
font = standard_font;
strings = 1;
string = player_stats_string;
}
player_stats_window.visible = on;
player_stats_text.visible = on;
When I try to run the program I get an error that says there's "Too many parameters" for the line that has: digits = 120,48,1,standard_font,1,playerstats[1]; The arrow is pointing to the [1] in playerstats. I'm not sure why...