Hallo
Game v1.8
Does anyone have this problem?
I tried to change the format of the language
There was a similar problem with "meta"
I cannot check the Lovatto project, I get an error like this:
My project: How can i fix it or how can i change format?
If you add friend
Your data:
logout then login:
Thank you
MFPS Friend List + database
Forum rules
To request support/assistance for MFPS, you first have to verify your purchase by sending your purchase invoice number to Lovatto in a PM.
To request support/assistance for MFPS, you first have to verify your purchase by sending your purchase invoice number to Lovatto in a PM.
- Lovatto
- Admin
- Posts: 1834
- Joined: Sun Dec 07, 2014 3:18 pm
- Contact:
- Lovatto
- Admin
- Posts: 1834
- Joined: Sun Dec 07, 2014 3:18 pm
- Contact:
The error line from your screenshot doesn't match with the original script,
make sure the function 'CheckIfUserExist(...)' in bl_Database.cs is the same as this:
Also, have you upgraded from an older version?
if you have, make sure you also update the Php scripts in your server.
make sure the function 'CheckIfUserExist(...)' in bl_Database.cs is the same as this:
Code: Select all
public static void CheckIfUserExist(MonoBehaviour reference, string where, string index, Action<bool> callback)
{
bl_ULoginWebRequest webRequest = new bl_ULoginWebRequest(reference);
var wf = bl_DataBaseUtils.CreateWWWForm(FormHashParm.Name, true);
wf.AddSecureField("typ", 4);
wf.AddSecureField("key", where);
wf.AddSecureField("values", index);
webRequest.POST(bl_LoginProDataBase.Instance.GetUrl(bl_LoginProDataBase.URLType.DataBase), wf, (result) =>
{
if (result.isError)
{
if (result.HTTPCode == 409)//response means user doesn't exists
{
callback?.Invoke(false);
return;
}
else
{
result.PrintError();
return;
}
}
callback?.Invoke(result.resultState == ULoginResult.Status.Success);
});
}
if you have, make sure you also update the Php scripts in your server.
- Moor
- Member
- Posts: 23
- Joined: Thu Apr 11, 2019 2:38 pm
This error has been fixed.Lovatto wrote: ↑Mon Apr 12, 2021 5:47 pm The error line from your screenshot doesn't match with the original script,
make sure the function 'CheckIfUserExist(...)' in bl_Database.cs is the same as this:
Also, have you upgraded from an older version?Code: Select all
public static void CheckIfUserExist(MonoBehaviour reference, string where, string index, Action<bool> callback) { bl_ULoginWebRequest webRequest = new bl_ULoginWebRequest(reference); var wf = bl_DataBaseUtils.CreateWWWForm(FormHashParm.Name, true); wf.AddSecureField("typ", 4); wf.AddSecureField("key", where); wf.AddSecureField("values", index); webRequest.POST(bl_LoginProDataBase.Instance.GetUrl(bl_LoginProDataBase.URLType.DataBase), wf, (result) => { if (result.isError) { if (result.HTTPCode == 409)//response means user doesn't exists { callback?.Invoke(false); return; } else { result.PrintError(); return; } } callback?.Invoke(result.resultState == ULoginResult.Status.Success); }); }
if you have, make sure you also update the Php scripts in your server.
And I was able to add a friend (In your project)
But after the relog
In your project and my project, it turns out a problem but not an error
- Lovatto
- Admin
- Posts: 1834
- Joined: Sun Dec 07, 2014 3:18 pm
- Contact:
Sorry for the late reply,
to fix this issue do the following:
in bl_ULoginMFPS.cs replace the function SaveFriendList(...) with:
This will fix the issue for friends that you add from now on, the friends added before you applied the fix will be still corrupted so you have to manually delete them.
to fix this issue do the following:
in bl_ULoginMFPS.cs replace the function SaveFriendList(...) with:
Code: Select all
public static void SaveFriendList(string friends, Action callback = null)
{
bl_DataBase.Instance.SaveValue("friends", friends, callback, true);
}