script error
Posted: July 5th, 2007, 7:41 pm
hi there, if I want to test my map with script etc it said bad syntax here is my gsc and I cant figure out.
key: targetname
value: dustglass_trig
speaker:
key: targetname
value: dustglass_speaker
and here is the other gscmain()
{
maps\mp\_load::main();
maps\mp\dustglass_SOUND();
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 ^1a^7nd ^1E^7njoy ^1w^7ith ^1t^7he ^1m^7usic!");
wait 3;
}
}
key: targetname
value: dustglass_trig
speaker:
key: targetname
value: dustglass_speaker
thanks in advancemain()
{
thread dustglass();
}
dustglass()
{
speaker = getent ("dustglass_speaker","targetname");
trigger = getent ("dustglass_trig","targetname");
while(1)
{
trigger waittill ("trigger");
speaker playsound("superstring");
wait(2)
}
}