View Single Post
  #2  
Old 10-07-2012, 03:01 PM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
I could be really wrong, it's been a while, but does removing '.gani' help?

I could also again be way off, things may have changed, but you could try prefixing the variable 'theNumber' with 'temp.' rather than 'var'? I remember that being the way to initialise variables within the scope of a function.

A good, basic debugging tool is using 'echo' to check whether certain parts of your code are being executed. It's also useful for dumping state. I'm sure I remember there being a proper debugger written in GS some where too that may be useful.

One thing you could try is:

PHP Code:
echo player.gani
To see what the value currently is. It may also be 'player.ani'.
Reply With Quote