Loading Score....
#1

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 ******
Reply
#2

Can we see how you saved the info ?

Peace...
Reply
#3

Did you use D_INI or Y_INI to save the info or did you even use anything to save it?
Reply
#4

I use dudb

in OnPlayerDisconnect:

dUserSetINT(PlayerName(playerid)).("score",GetPlay erScore(playerid));

and in login:

SetPlayerScore(playerid,dUserINT(PlayerName(player id)).("score"));
Reply
#5

Is it saving the data in a file, is data actually been writen to the file on disconnect ?

Peace...
Reply
#6

yess
Reply
#7

Show us the login part ?
Reply
#8

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
Reply
#9

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.
Reply
#10

maramizo

if you have it exactly the same: D
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)