Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Fee on Fri 30/03/2007 00:34:42

Title: whats wrong with this line? ("undefined token" error)
Post by: Fee on Fri 30/03/2007 00:34:42
player.ChangeRoom(Character[FEE].PreviousRoom, GetGlobalInt (50), GetGloablInt (51));

It says "undefined symbol" GetGlobalInt

Im assuming I'm confused about somthing between versions :/
Title: Re: whats wrong with this line?
Post by: Ashen on Fri 30/03/2007 01:23:00
The GlobalInt functions haven't changed, so it's probably not that ... However if that's exactly how the line is in the script, there're two things I can see. Character[FEE] needs a lowercase 'c', and the second GetGlobalInt actually says GetGloablInt (which I do all the time) - that'd cause the error you're getting.
Title: Re: whats wrong with this line?
Post by: Fee on Fri 30/03/2007 01:54:48
OMG lol.. such a noob :S

kk thanks again Ashen.

Title: Re: whats wrong with this line?
Post by: Candle on Fri 30/03/2007 02:57:10
And don't use in your subject field whats wrong with this? as it helps no one when they search for help and someone may have posted something that could help them. :)
Title: Re: whats wrong with this line?
Post by: Fee on Fri 30/03/2007 07:41:14
ok. i guess i can do that :P

However, if you notice the search doesnt just include the topic, it searches the whole thread and highlights where what you searched in a summary for each topic it lists, so IMO it makes no difference either way. :D
Title: Re: whats wrong with this line? ("undefined token" error)
Post by: Ashen on Fri 30/03/2007 10:49:24
Quote
so IMO it makes no difference either way.
Except that using descriptive thread titles is in the rules, so it DOES make a difference. I didn't mention it because I thought it was OK (as it said ' with this line' which - to me - implied it was a script problem). I've added the error type for extra clarity, though, as the search might make that disticntion.

However - Candle, thanks for helping, but leave the moderating to moderators, OK? (That's also in the rules :))
Title: Re: whats wrong with this line? ("undefined token" error)
Post by: Candle on Fri 30/03/2007 11:21:46
No problem..