script error

Have questions about CoD/UO mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Post Reply
Mant!s NL
CJ Wannabe
CJ Wannabe
Posts: 25
Joined: March 3rd, 2007, 3:38 pm
Location: Bilthoven (Utrecht) The Netherlands
Contact:

script error

Post by Mant!s NL » June 26th, 2007, 5:23 pm

Hi there,

If I want to test my map with my gsc file it say ''Bad Syntax" and here is my gsc file;
main()
{

maps\mp\_load::main();

thread tekst();
}

tekst()
{
trigger = getent ("tekst", "targetname");
while(1)
{
trigger waittill ("trigger", user);
user iprintlnbold("Congrats, " + user.name" , ^1Found The Secret Room!");
wait 2;
user iprintlnbold("^4S^7tay ^4a^7while ^4a^7nd ^4t^7ake a ^4g^7ood ^4l^7ook ^4a^7round");
wait 2;
user iprintlnbold("^1H^7ave ^1F^7un, ^3W^7ith ^3T^7he ^3M^7usic^1!");
wait 3;
}
}

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » June 26th, 2007, 6:12 pm

Yours =

Code: Select all

user iprintlnbold("Congrats, " + user.name" , ^1Found The Secret Room!");
Correct =

Code: Select all

user iprintlnbold("Congrats, " + user.name + ", ^1Found The Secret Room!");
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

Mant!s NL
CJ Wannabe
CJ Wannabe
Posts: 25
Joined: March 3rd, 2007, 3:38 pm
Location: Bilthoven (Utrecht) The Netherlands
Contact:

Post by Mant!s NL » June 26th, 2007, 7:08 pm

ahh that was the problem and it works:D thanks Drofder:D

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest