hi,
How can i get the username of the user who is Lost because of idle state. I want to save isActive to false in the database whenever the user is lost. The userLost event in the handleInternalEvent will give username as null.
Many thanks,
J
How to get the username who is lost..
How to get the username who is lost..
Game Developer
Jeetesh Bhoria
Jeetesh Bhoria
Hi I was doing this in server
In public void handleInternalEvent(InternalEventObject evt)
{
if(evt.getEventName().equals(InternalEventObject.EVENT_USER_LOST))
{
String nick = evt.getParam("nick");
String pass = evt.getParam("pass");
System.out.println("nick = <"+nick+"> pass = <"+pass+">");
}
}
it's printing NULL , NULL ..
{
if(evt.getEventName().equals(InternalEventObject.EVENT_USER_LOST))
{
String nick = evt.getParam("nick");
String pass = evt.getParam("pass");
System.out.println("nick = <"+nick+"> pass = <"+pass+">");
}
}
it's printing NULL , NULL ..
Game Developer
Jeetesh Bhoria
Jeetesh Bhoria
Those parameters are wrong.
You seem to be referencing the parameters of the Login event.
Please make sure to check the documentation for a list of names of the event parameters.
http://smartfoxserver.com/docs/docPages ... bject.html
You seem to be referencing the parameters of the Login event.
Please make sure to check the documentation for a list of names of the event parameters.
http://smartfoxserver.com/docs/docPages ... bject.html
Return to “iPhone Objective-C API”
Who is online
Users browsing this forum: No registered users and 24 guests