Hi;

I have some code to instanciate a 'global' variable, like:

var lobby = Ape.mkChan("lobby");

...and it works perfectly.




In another part of my server side javascript, i wrote:

var nextGameId = 1;
Ape.registerCmd("iWantToPlay", true, function(params, infos) {
                var gameId = nextGameId++;
                var game = Ape.mkChan("game-"+gameId);
                if (!game) {
                        Ape.log("ERROR: just created game '"+"game-"+gameId+"'
undefined !!!");
                        return 0;
                }
});

... and i get the error log.

What's happening ?

Thanks in advance;

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to