Posted By: Cactus
Can't Open File? - 10/31/08 17:12
Ok I wrote this piece of code I'm not good at c-script but I thought hey this should be easy enough.
Here is what the code is suppose to do: when you click the button it is supposed to display an entity onto the screen however when I click on the button it says cannot open file, I checked and my file is in the right folder so I dont know what to do here, mabey I did somthing wrong, heres my code:
ENTITY again_ent =
{
type = "again.bmp";
layer = 2;
x = 20;
y = 0;
z = 0;
}
function button_3()
{
ent_create(again_ent,temp,NULL);
}
BMAP background_bmp = "background.bmp";
PANEL background_pan =
{
pos_x = 0;
pos_y = 0;
layer = 1;
bmap = background_bmp;
button (550, 134, "button_3.bmp", "button_3_over.bmp", "button_3_over.bmp", button_3,NULL, NULL);
flags = OVERLAY | VISIBLE;
}
Help with this would be greatly appriciated.
Thanks, Cactus
Here is what the code is suppose to do: when you click the button it is supposed to display an entity onto the screen however when I click on the button it says cannot open file, I checked and my file is in the right folder so I dont know what to do here, mabey I did somthing wrong, heres my code:
ENTITY again_ent =
{
type = "again.bmp";
layer = 2;
x = 20;
y = 0;
z = 0;
}
function button_3()
{
ent_create(again_ent,temp,NULL);
}
BMAP background_bmp = "background.bmp";
PANEL background_pan =
{
pos_x = 0;
pos_y = 0;
layer = 1;
bmap = background_bmp;
button (550, 134, "button_3.bmp", "button_3_over.bmp", "button_3_over.bmp", button_3,NULL, NULL);
flags = OVERLAY | VISIBLE;
}
Help with this would be greatly appriciated.
Thanks, Cactus