Loading Score.... - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Loading Score.... (
/showthread.php?tid=230445)
Loading Score.... -
Reles - 23.02.2011
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 ******
Re: Loading Score.... -
Stigg - 23.02.2011
Can we see how you saved the info ?
Peace...
Re: Loading Score.... -
maramizo - 23.02.2011
Did you use D_INI or Y_INI to save the info or did you even use anything to save it?
Re: Loading Score.... -
Reles - 23.02.2011
I use dudb
in OnPlayerDisconnect:
dUserSetINT(PlayerName(playerid)).("score",GetPlay erScore(playerid));
and in login:
SetPlayerScore(playerid,dUserINT(PlayerName(player id)).("score"));
Re: Loading Score.... -
Stigg - 23.02.2011
Is it saving the data in a file, is data actually been writen to the file on disconnect ?
Peace...
Re: Loading Score.... -
Reles - 23.02.2011
yess
Re: Loading Score.... -
Stigg - 23.02.2011
Show us the login part ?
Re: Loading Score.... -
Reles - 23.02.2011
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
Re: Loading Score.... -
maramizo - 23.02.2011
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.
Re: Loading Score.... -
Reles - 23.02.2011
maramizo
if you have it exactly the same: D