[How to] Save system question [Rep+]
#1

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

::Bump::

Help please
Reply
#3

pawn Код:
dUserSetINT(PlayerName2(playerid)).("Score",GetPlayerScore(playerid));
rep
Reply
#4

Thanks mate, and yep I am going to rep you!
Reply
#5

Where do I put that? o.o
Reply
#6

I would say the, OnPlayerRequestSpawn callback.

Or, possibly under your login system OnDialogResponse for when the account is successfully loaded.
Reply
#7

Well I don't have that in Ladmin
Reply
#8

Well, is your login system, a dialog, or command login system?
Reply
#9

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

Add it onto OnPlayerConnect, it should be there if I understand the script correctly.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)