[How to] Save system question [Rep+] -
Twinki1993 - 13.01.2012
Okay I have ladmin v4.2 but my score doesnt wanna save... Anyone can help me?
Saving sys:
Код HTML:
if (!udb_Exists(PlayerName2(playerid)))
dUserSetINT(PlayerName2(playerid)).("password_hash",udb_hash(params) );
And I think this
Код HTML:
format(file,sizeof(file),"/ladmin/users/%s.sav",udb_encode(PlayerName2(playerid)) );
This FS saves the kills but not score (By score I mean = GetPlayerScore, I need it for something!).. How do I do it? I searched and searched.. but still nothing.. Many things I found were unhelpful
Re: [How to] Save system question [Rep+] -
Twinki1993 - 13.01.2012
::Bump::
Help please
Re: [How to] Save system question [Rep+] -
coole210 - 13.01.2012
pawn Код:
dUserSetINT(PlayerName2(playerid)).("Score",GetPlayerScore(playerid));
rep
Re: [How to] Save system question [Rep+] -
Twinki1993 - 13.01.2012
Thanks mate, and yep I am going to rep you!
Re: [How to] Save system question [Rep+] -
Twinki1993 - 14.01.2012
Where do I put that? o.o
Re: [How to] Save system question [Rep+] -
nmader - 14.01.2012
I would say the, OnPlayerRequestSpawn callback.
Or, possibly under your login system OnDialogResponse for when the account is successfully loaded.
Re: [How to] Save system question [Rep+] -
Twinki1993 - 14.01.2012
Well I don't have that in Ladmin
Re: [How to] Save system question [Rep+] -
nmader - 14.01.2012
Well, is your login system, a dialog, or command login system?
Re: [How to] Save system question [Rep+] -
Twinki1993 - 14.01.2012
Well as I stated it's Ladmin4.2
Here's the code btw you can check it
http://pastebin.com/21KecZiu
I am kinda noob when it comes to this stuff about Dini and dubd
Re: [How to] Save system question [Rep+] -
nmader - 14.01.2012
Add it onto OnPlayerConnect, it should be there if I understand the script correctly.