
ACS is killing me!

Well I made this code:
Code: Select all
#library "MAP1BACS"
#include "zcommon.acs"
/////////////////////////////////////
////Personel Computer -- 1 Room//////
/////////////////////////////////////
bool acess = false;
bool inAcess = false;
int currentOption = 0;
int num_options = 2;
str options [2] = {" Personel Log", "Exit"};
//Theres just the Y, the X are the same
int optionsPos[5] = {180.0, 200.0, 220.0, 240.0, 260.0};
Script 100 (void)
{
SetPlayerProperty(0, 1, PROP_TOTALLYFROZEN);
inAcess = false;
acess = true;
sethudsize(128, 128, 1);
SetFont("COMPCT01");
HudMessage(s:"A"; HUDMSG_PLAIN, 999, CR_UNTRANSLATED, 64.0, 64.0, 0.0);
sethudsize(800, 600, 1);
SetFont("BIGFONT");
hudmessage(s: "=======================================\n=====UAC Systems=====\n======================================="; HUDMSG_PLAIN, 900, CR_GREY, 400.0, 100.0, 255.0);
SetFont("consolefont");
hudmessage(s: options[0]; HUDMSG_PLAIN, 901, CR_GREY, 130.0, 180.0, 255.0);
hudmessage(s: options[1]; HUDMSG_PLAIN, 902, CR_GREY, 130.0, 200.0, 255.0);
acs_execute(101, 0, 0, 0, 0);
}
//Current Option
Script 101(void)
{
sethudsize(800, 600, 1);
SetFont("consolefont");
hudmessage(s: ">"; HUDMSG_PLAIN, 903, CR_GREY, 100.0, optionsPos[currentOption], 255.0);
delay(15);
hudmessage(s: ""; HUDMSG_PLAIN, 903, CR_GREY, 100.0, optionsPos[currentOption], 255.0);
delay(15);
restart;
}
//Option UP
Script 102 (void)
{
if(acess)
{
if(currentOption > 0)
currentOption--;
}
}
//Option Down
Script 103 (void)
{
if(acess)
{
if(currentOption < (num_options - 1))
currentOption++;
}
}
//Select Option
Script 104 (void)
{
if(acess == true && inAcess == false)
{
Acs_execute((105 + currentOption), 0, 0, 0, 0);
}else if(acess == true && inAcess == true)
{
Acs_execute(100, 0, 0, 0, 0);
}
}
//Personel Log
Script 105 (void)
{
inAcess = true;
ACS_Terminate(101, 0);
for (int i = 0; i < 5; i++)
{
hudmessage(s: ""; HUDMSG_PLAIN, (901 + i), CR_GREY, 0, 0, 0.0);
}
sethudsize(800, 600, 1);
SetFont("consolefont");
Hudmessage(s:"Personel log - Johm Grimm == April 18 - 2056"; HUDMSG_TYPEON | HUDMSG_PLAIN, 902, CR_GREY, 300.0, 180.0, 999.0, 0.01, 10.0);
hudmessage(s:"These nightmares, every day the same thing. The doctor said this could be caused\n",
s:"by stress that this place offers, but I don't know if it's only that. It seems\n",
s:"to have something more behind, I feel alive in the dream, I can feel pain, heat,\n",
s:"cold.. everything! But I can't do that 'test' or whatever is that. If this\n",
s:"continues I'll ask for a few days of license and get out of here .. I don't want\n",
s:"to go crazy \n\n\n\nPress 'Select' to back";
HUDMSG_TYPEON | HUDMSG_PLAIN, 901, CR_GREY, 400.0, 250.0, 999.0, 0.01, 10.0);
}
//Exit
Script 106 (void)
{
for (int i = 0; i < 5; i++)
{
hudmessage(s: ""; HUDMSG_PLAIN, (900 + i), CR_GREY, 0, 0, 0.0);
}
acs_terminate(101, 0);
hudmessage(s: ""; HUDMSG_PLAIN, 999, CR_GREY, 0, 0, 0.0);
acess = false;
inAcess = false;
SetPlayerProperty(0, 0, PROP_TOTALLYFROZEN);
}
"Bad charecter in script text" MAP1BACS.acs(line1)
What the he** i did wrong ?
