Posts: 12
Threads: 3
Joined: Feb 2011
Reputation:
0
Please help me I have a problem do I save the score and then I tried it with a friend, but then we tried to relog and we said IDs and even the score, does anyone know how to fix it?
Excuse my bad English
Translated in ******
Posts: 2,038
Threads: 17
Joined: Aug 2010
Reputation:
0
Can we see how you saved the info ?
Peace...
Posts: 686
Threads: 29
Joined: Feb 2011
Reputation:
0
Did you use D_INI or Y_INI to save the info or did you even use anything to save it?
Posts: 12
Threads: 3
Joined: Feb 2011
Reputation:
0
I use dudb
in OnPlayerDisconnect:
dUserSetINT(PlayerName(playerid)).("score",GetPlay erScore(playerid));
and in login:
SetPlayerScore(playerid,dUserINT(PlayerName(player id)).("score"));
Posts: 2,038
Threads: 17
Joined: Aug 2010
Reputation:
0
Is it saving the data in a file, is data actually been writen to the file on disconnect ?
Peace...
Posts: 12
Threads: 3
Joined: Feb 2011
Reputation:
0
if(dialogid==17)
{
if(!response)
Kick(playerid);
else
{
if (strlen(inputtext) == 0)
ShowPlayerDialog(playerid,16,DIALOG_STYLE_INPUT,"P řihlбšenн","Musнš napsat heslo !","OK","Odpojiť");
if (udb_CheckLogin(PlayerName(playerid),inputtext))
{
SetPlayerMoney(playerid,dUserINT(PlayerName(player id)).("money"));
SetPlayerScore(playerid,dUserINT(PlayerName(player id)).("score"));
PLAYERLIST_authed[playerid] = true;
return SCM(playerid, COLOR_GREEN, "Přihlбsil ses užij si pařbu !");
}
else
ShowPlayerDialog(playerid,17,DIALOG_STYLE_INPUT,"P řihlбšenн","Špatnй heslo N00B ! !\n\nNapiš sprбvnй heslo !","OK","Odpojiť");
}
}
PS: Is it in czech
Posts: 686
Threads: 29
Joined: Feb 2011
Reputation:
0
So does the money load?
SetPlayerScore(playerid,dUserINT(PlayerName(player id)).("score"));
should be
SetPlayerScore(playerid,dUserINT(PlayerName(player id)).("score"));
No space between player and id.
Posts: 12
Threads: 3
Joined: Feb 2011
Reputation:
0
maramizo
if you have it exactly the same: D